sidprice

Forum Replies Created

Viewing 6 posts - 121 through 126 (of 126 total)
  • Author
    Posts
  • in reply to: Debugging shared library #9189
    sidprice
    Participant

    Should I send this data to support @ sysprogs.com ??

    Sid

    in reply to: Debugging shared library #9164
    sidprice
    Participant

    I tried to implicitly include “string”:

    #include <string>

    This made no difference, so I copied the definition of ‘string’ from ‘stringfwd.h’:

    typedef basic_string<char>    string;

    This stopped Clang saying ‘string’ is not a class but there is no intellisense for the members of the string class, I assume because ‘basic_string’ remains unknown to Clang.

    What is odd here is that the same Intellisense settings in the main application work, it is only in the class library project that CLang fails, maybe that is a clue!

    I can send you this small library project, however the target OS is Yocto, so I am not sure fi it would help you.

    Sid

    in reply to: Debugging shared library #9149
    sidprice
    Participant

    I do not think the “stubs-soft.h” is the issue, that file is missing from my system, however “stubs-hard.h” is there and it does not include other fiels nor does it have anything to do with fstream, string, or any of the other errors. CLang reports that “string” is not a class!

    Don’t forget that the main application in the solution has the same intellisense directories and works just fine.

    Sid

    in reply to: Debugging shared library #9142
    sidprice
    Participant

    I have downloaded and installed 5.2 Beta 1 and I have the same problem. However now CLang reports that it cannot find file “gnu\stubs-soft.h”. I have no idea what this header is for. Would that prevent the correct intellisense for such things as “fstream” and “string”?

    Severity Code Description Project File Line Suppression State
    Error [Clang IntelliSense] Error: member reference base type ‘std::ifstream’ (aka ‘int’) is not a structure or union TSN_NIC c:\dataroot\projects\tsn\tsn_nic\TSN_NIC.cpp 28
    Error [Clang IntelliSense] Error: member reference base type ‘std::ifstream’ (aka ‘int’) is not a structure or union TSN_NIC c:\dataroot\projects\tsn\tsn_nic\TSN_NIC.cpp 33
    Error [Clang IntelliSense] Error: member reference base type ‘std::ifstream’ (aka ‘int’) is not a structure or union TSN_NIC c:\dataroot\projects\tsn\tsn_nic\TSN_NIC.cpp 35
    Error [Clang IntelliSense] Error: member reference base type ‘string’ (aka ‘int’) is not a structure or union TSN_NIC c:\dataroot\projects\tsn\tsn_nic\TSN_NIC.cpp 38
    Error [Clang IntelliSense] Error: ‘string’ (aka ‘int’) is not a class, namespace, or enumeration TSN_NIC c:\dataroot\projects\tsn\tsn_nic\TSN_NIC.cpp 38

    Plus, there is a new warning for a simple stream operation “inputFile >> inputLine”, it says:

    Severity Code Description Project File Line Suppression State
    Warning [Clang IntelliSense] Warning: expression result unused TSN_NIC c:\dataroot\projects\tsn\tsn_nic\TSN_NIC.cpp 37

    Sid

    in reply to: Debugging shared library #9131
    sidprice
    Participant

    I have one more issue with my shared library project, it appears that CLang Intellisense is not working correctly. My code compiles and runs fine but CLang Intellisense reports errors on things in the std namespace. For example:

    std::ifstream inputFile;

    inputFile.open(“theFile”) ;

    There is a red mark under the dot between inputFile and open and the tooltip says “std::fstream (aka int) is not a structure or union”

    I have checked the Intellisense directories in my library project and they look the same the main application which does not have this problem.

    Is there something special I need to add for a library?

    Sid

    in reply to: Debugging shared library #9129
    sidprice
    Participant

    Thank you, that was the issue. A simple newbie mistake, I had not configured my remote cross compiler correctly. Now my small test works great and I have debugger access to the shared library.

    Love this product!

    Sid

Viewing 6 posts - 121 through 126 (of 126 total)