Sign in to follow this  
Tradone

Undefined Reference Error Help Please!

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

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