Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSVC - C++ - Release build failed - linker error

Tags:

c++

visual-c++

HI,

If I am trying to build and link my app in Release mode, i got linker error:

Error 72 error LNK2001: unresolved external symbol "public: __thiscall MyModels::MT6::MT6(double)" (??0MT6@MyModels@@QAE@N@Z) C:\Martin\Programing\WoknaTest\WoknaTest\DXForm.obj WoknaTest

In debug mode everything works fine.... what could be possibly wrong ?

Thanks

like image 506
Perry Avatar asked Nov 30 '25 01:11

Perry


2 Answers

Judging from the fact that it builds successfully in the debug configuration, my first suggestion would be to check the additional dependencies supplied to the linker. This setting would be Additional Dependencies setting under Project -> Properties -> Configuration Properties -> Linker -> Input. Make sure this setting matches what is under the debug configuration, assuming there aren't debug-build-specific library names.

I'd check in the Project settings that all the .lib includes and dlls are included in both Release and Debug modes.

The solution to this is probably in the project settings for linking somewhere (either .lib .dll or path includes) , but I can't really tell you exactly where from the info. you provided.

like image 30
NotJarvis Avatar answered Dec 02 '25 14:12

NotJarvis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!