开发者

linking error for libs in VC++

开发者 https://www.devze.com 2023-02-13 03:16 出处:网络
开发者_如何转开发In my project exist two sub project. main project is shopGUI other ones are \'connection\' and \'log\'
开发者_如何转开发

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

0

精彩评论

暂无评论...
验证码 换一张
取 消