Jump to content
  • Advertisement
Sign in to follow this  
Tradone

Undefined Reference Error Help Please!

This topic is 4552 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!