简体   繁体   English

vs2008新用户

[英]new vs2008 user

I am trying to build a release version of my project. 我正在尝试构建项目的发行版。 Our prof made us create a static library which i built using debug version. 我们的教授让我们创建了一个静态库,该库是我使用调试版本构建的。

then i made a release version of that static library using /mt as my c runtime 然后我使用/ mt作为我的c运行时制作了该静态库的发行版

now in my test application (release version) I use the same runtime option and add that static library and also ignore the libcmd.lib in the ignore settings for the linker. 现在,在我的测试应用程序(发行版)中,我使用相同的运行时选项并添加该静态库,并且还忽略了链接器的“忽略”设置中的libcmd.lib。

i resolved most of the problem 我解决了大部分问题

this is the last part lnk4075 /edit and continue due to /opt:icf specification compositelib.lib (my staticlib) lnk2001 unresolved external symbol _winmain@16. 这是最后一部分lnk4075 /编辑并继续因/ OPT:ICF规范compositelib.lib(我staticlib)_WinMain @ 16 LNK2001解析的外部符号。 libcmtd.lib libcmtd库

these are the last two that i can't seem to figure out. 这些是我似乎无法弄清的最后两个。

添加libcmt.lib以忽略发行版列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM