View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007058CMakeCMakepublic2008-05-20 05:322010-12-14 18:45
ReporterEgon Kocjan 
Assigned ToDavid Cole 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0007058: VS 2005 + win2k3r2 SDK compilation issue
DescriptionI get this link error:

7>CMakeLib.lib(cmCallVisualStudioMacro.obj) : error LNK2019: unresolved external symbol "wchar_t * __stdcall _com_util::ConvertStringToBSTR(char const *)" (?ConvertStringToBSTR@_com_util@@YGPA_WPBD@Z) referenced in function "public: __thiscall _bstr_t::Data_t::Data_t(char const *)" (??0Data_t@_bstr_t@@QAE@PBD@Z)
7>CMakeLib.lib(cmCallVisualStudioMacro.obj) : error LNK2019: unresolved external symbol "char * __stdcall _com_util::ConvertBSTRToString(wchar_t *)" (?ConvertBSTRToString@_com_util@@YGPADPA_W@Z) referenced in function "public: char const * __thiscall _bstr_t::Data_t::GetString(void)const " (?GetString@Data_t@_bstr_t@@QBEPBDXZ)
Additional InformationI have attached a patch that resolves the issue.
TagsNo tags attached.
Attached Filesdiff file icon comsupp.diff [^] (461 bytes) 2008-05-20 05:32 [Show Content]

 Relationships
related to 0007533closedBill Hoffman Fail to build cmake from sources using MSVC2005 SP1 

  Notes
(0012890)
Patrick Spendrin (reporter)
2008-07-30 19:11

The attached patch might be wrong as it doesn't reflect build types.
For further information read this whole thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=145979&SiteID=1 [^]
The error is still present in cmake-2.7.20080726 .
(0012905)
David Cole (manager)
2008-07-31 13:49

Fixed in CVS HEAD:

/cvsroot/CMake/CMake/Source/CMakeLists.txt,v <-- CMakeLists.txt
new revision: 1.402; previous revision: 1.401

I think "commsup" is the correct lib to link against for a 32-bit / non-UNICODE build.


SaroEngels, does this fix work for you if you update to CVS HEAD and build a new CMake...? Or do you really need the "w" versions of the commsup lib for some reason? If so, what is special about your build?

64-bit? Extra cxx defines or flags?


Thanks
(0012906)
David Cole (manager)
2008-07-31 13:49

SaroEngels, please re-open with feedback if this fix does not resolve the issue for you.
(0012919)
David Cole (manager)
2008-08-01 12:13

Further refinement necessary to get clean dashboards with VS6 builds:

/cvsroot/CMake/CMake/Source/CMakeLists.txt,v <-- CMakeLists.txt
new revision: 1.403; previous revision: 1.402

(0013768)
David Cole (manager)
2008-10-08 14:20

re-fixed along with related issue 0007533:
    /cvsroot/CMake/CMake/Source/CMakeLists.txt,v <-- CMakeLists.txt
    new revision: 1.404; previous revision: 1.403
    /cvsroot/CMake/CMake/Source/cmCallVisualStudioMacro.cxx,v <-- cmCallVisualStudioMacro.cxx
    new revision: 1.5; previous revision: 1.4
(0024036)
David Cole (manager)
2010-12-14 18:45

Closing bugs that have been resolved for more than 3 months without any further updates.

 Issue History
Date Modified Username Field Change
2008-05-20 05:32 Egon Kocjan New Issue
2008-05-20 05:32 Egon Kocjan File Added: comsupp.diff
2008-05-20 10:34 Bill Hoffman Status new => assigned
2008-05-20 10:34 Bill Hoffman Assigned To => David Cole
2008-07-30 19:11 Patrick Spendrin Note Added: 0012890
2008-07-31 13:49 David Cole Note Added: 0012905
2008-07-31 13:49 David Cole Status assigned => resolved
2008-07-31 13:49 David Cole Resolution open => fixed
2008-07-31 13:49 David Cole Note Added: 0012906
2008-08-01 12:13 David Cole Note Added: 0012919
2008-08-01 12:13 David Cole Status resolved => assigned
2008-08-01 12:13 David Cole Status assigned => resolved
2008-09-05 16:52 David Cole Relationship added related to 0007533
2008-10-08 14:19 David Cole Status resolved => assigned
2008-10-08 14:20 David Cole Status assigned => resolved
2008-10-08 14:20 David Cole Note Added: 0013768
2010-12-14 18:45 David Cole Note Added: 0024036
2010-12-14 18:45 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team