Im using Suse 9.1 and Kdevelop 3.1. Im building on top of an already existing library for a software, some applications have been built using this same library and they work perfectly fine. But when I use the same templates and classes, upon declaring some types I get errors such as: main.o(.text+0x27b): In function `main':
: undefined reference to `InputReader::InputReader[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_ostream<char, std::char_traits<char> >&, std::basic_filebuf<char, std::char_traits<char> >*, int)'
main.o(.text+0x2bc): In function `main':
: undefined reference to `InputReader::~InputReader [in-charge]()'
Although some other types work fine. But I do have the header file "InputReader" included, and I declare and initialize the object just as it was declared and initialized in the working applications, but it still gives me this error.
Im hoping this has happened to someone before, because its been staring me in the face for days now. Can anyone help?
Do you have multiple namespaces? It looks like the link editor thinks InputReader is in another namespace.
no, I only have one namespace. Well one namespace other than the namespace std...
But the namespace Im including does not appear in the namespace folder of my project, I'm including a namespace that is declared simply in the code that I am using.
Meaning, I have a whole library I'm using for graph and graph manipulation, and they are all in the name space Graph...
I guess I have to do something more, now that you mentioned it....
|All times are GMT -5. The time now is 11:35 PM.|