linking error for libs in VC++
In my project exist two sub project.
main project is shopGUI other ones are 'connection' and 'log' I build at first a log.lib file from log project then add it to connection project and build connection.lib
then I try use connection in main project(shopGUI) but I have linking error. error said that in
connection.lib(Client.obj) : error LNK2019: unresolved external symbol "public: void __thiscall log::print....."
thanks herzl
Libraries don't link in dependent libraries.
You'll need to link your ShopGui with both sub project libraries.
Possibilities:
1) You linked improperly
2) You have forgotten to define (write the body of) log::print
精彩评论