vs 2008 link problem Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
cppwxwidgets
Knows some wx things
Knows some wx things
Posts: 38
Joined: Sun Nov 16, 2008 3:28 pm

vs 2008 link problem

Post by cppwxwidgets » Wed Dec 10, 2008 2:27 pm

i have ALL of wxwidgets compiled (all versions)
and i have got still problem with a code
please check it at the attachment
thank you
(winxp,wxw last ver,visualstudio2008)
the link error :
------ Build started: Project: minimal, Configuration: Debug Win32 ------
Compiling...
minimal.cpp
.\minimal.cpp(166) : warning C4100: 'evt' : unreferenced formal parameter
.\minimal.cpp(172) : warning C4100: 'evt' : unreferenced formal parameter
Compiling resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation. All rights reserved.
Compiling manifest to resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation. All rights reserved.
Linking...
CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 9.00.21022
Copyright (C) Microsoft Corporation. All rights reserved.
Build log was saved at "file://e:\wxWidgets-2.8.9\samples\minimal\vc_mswd\minimal\BuildLog.htm"
minimal - 2 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Attachments
minimal.rar
it is the whole code directory
because of restriction to upload i eliminated the picture files and i m forced to compress with rar instead of zip
(431.97 KiB) Downloaded 103 times
shb

User avatar
T-Rex
Moderator
Moderator
Posts: 1178
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Wed Dec 10, 2008 2:58 pm

Please see attachment
Attachments
wx_no_manifest_in_debug.jpg
Linker should not generate manifest in Debug configuration if you include wxWidgets resources in your project.

cppwxwidgets
Knows some wx things
Knows some wx things
Posts: 38
Joined: Sun Nov 16, 2008 3:28 pm

thanks

Post by cppwxwidgets » Thu Dec 11, 2008 5:41 am

i am very very very thankful
cos i don't know anything about this linker options
thank u very much
but when i compile the project in debug mode(not in release mode) there is a error message of windows that tell me that the app can not start because can't find msvcr90d.dll , but in release mode it runs , i searched my disk for this file and find 5-6 files with this name but i don't know why it tells me that it can't be found
shb

User avatar
T-Rex
Moderator
Moderator
Posts: 1178
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex » Thu Dec 11, 2008 10:33 am

Code: Select all

but when i compile the project in debug mode(not in release mode) there is a error message of windows that tell me that the app can not start because can't find msvcr90d.dll
Go to project settings -> C/C++ -> Code generation and check "Runtime Library" property. It should be "Multi Threaded Debug" for Debug build and "Multi Threaded" for Release build (this setting should have the same values for your project and wxWidgets library itself, so if your current wxWidgets build has another settings, you'll need to recompile it).
---
Does this problem occur on your machine where Visual Studio installed or on other machine?

cppwxwidgets
Knows some wx things
Knows some wx things
Posts: 38
Joined: Sun Nov 16, 2008 3:28 pm

Post by cppwxwidgets » Sat Dec 13, 2008 6:16 am

Does this problem occur on your machine where Visual Studio installed or on other machine?
both, in the machine vs is installed and a pure machine, both have the same error message.
========================================
i did what u said but still i have another error message
i think i don't know what's going on under the hood
the message is as follows :
MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj)
MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _malloc already defined in LIBCMTD.lib(dbgmalloc.obj)
==========
by the way, if you are working with wxToolBox, please tell me
is it integrated with visual studio and if yes is it hard to
install it as to be integrated in vs
thank you
shb

Post Reply