When compiling the following code, my actual link class is more complex, i got the error message:
link.cpp: In function ‘int main()’:
link.cpp:19: error: expected ‘;’ before ‘lA’
if i don't use string it works. Someone knows about this problem.
CODE:
#include <string>
class link{
public:
link();
~link();
};
Apparently <string> on your platform declares C++ versions of system functions such as link()[1] and linkat()[2]. If you use the -E switch, it will output preprocessed source. Doing that for <string> reveals the following on my PC: