Sign in to follow this  

Undefined Reference Error Help Please!

This topic is 4271 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

g++ -o new_shenu.cgi new_shenu.o Algorithms.o Config.o Cookie.o Parameter.o Path.o Print.o Skin.o -L/usr/local/lib -I/usr/local/include -lboost_serialization new_shenu.o(.text+0x2e74): In function `main': : undefined reference to `Algorithms::SaveSimpleMapToFile(std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >, std::string)' new_shenu.o(.text+0x5993): In function `main': : undefined reference to `Algorithms::SaveSimpleMapToFile(std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >, std::string)' *** Error code 1 Can somebody please tell me what this kind of linker error generally means? Thank you very much. [Edited by - Tradone on April 2, 2006 7:02:12 PM]

Share this post


Link to post
Share on other sites
okay i found the bug.
sorry about keep posting things whenever I have a problem,
but it's not like I'm trying to take advantage of the helpers here.
hey, i'm trying to solve the Q's too!

well this was the deal in the cpp file darn it!
Before:

void SaveSimpleMapToFile( std::map<std::string,std::string> mapData, std::string filePath ){
..
do work
..

}





After:

void Algorithms::SaveSimpleMapToFile( std::map<std::string,std::string> mapData, std::string filePath ){
..
do work
..

}




Share this post


Link to post
Share on other sites

This topic is 4271 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this