Forum Replies Created
-
AuthorPosts
-
sidpriceParticipant
Should I send this data to support @ sysprogs.com ??
Sid
sidpriceParticipantI 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
sidpriceParticipantI 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
sidpriceParticipantI 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 38Plus, 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 37Sid
sidpriceParticipantI 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
sidpriceParticipantThank 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
-
AuthorPosts