Problem Linking on Vista Visual C++ Express WxWidgets

polpe p0lpe at libero.it
Sun Jul 1 02:01:29 PDT 2007


I have found a lot of problem in building wxWidgets library on Visual C
++ Express onto Vista.

Now I understand what is my mistake: the Administation Permission.

In http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ you
can read:

> Step 4: Update the corewin_express.vsprops file.
>One more step is needed to make the Win32 template work in Visual C++ Express. You need to edit the
> corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults)
>and
>
> Change the string that reads:
> AdditionalDependencies="kernel32.lib"
>  to
>AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
>shell32.lib ole32.lib oleaut32.lib uuid.lib"
>
>Step 5: Generate and build a Win32 application to test your paths.
>In Visual C++ Express, the Win32 Windows Application type is disabled in the Win32 Application Wizard.
>To enable that type, you need to edit the file AppSettings.htm file located in the folder "%ProgramFiles%>
>\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\1033\".
>
>In a text editor comment out lines 441 - 444 by putting a // in front of them as shown here:
>
>// WIN_APP.disabled = true;
>// WIN_APP_LABEL.disabled = true;
>// DLL_APP.disabled = true;
>// DLL_APP_LABEL.disabled = true;
>
>Save and close the file and open Visual C++ Express.

NOTE: When you change the test file in VISTA with a TextEditor if you
don't have the Administrator right you can't modify the files...!!!!


Remember if you have the follow problems it can be that you have to
modify the files whit Adminitrator permission: Right click on the
Program Icon (ex. Visula studio Express) and modify the file.

Good Luck

Polpe from Italy

PS: Remenber in Vista you have to run Visual studio Express with
Administrator Permission


This is some of the output with problem:

filename.obj : error LNK2019: unresolved external symbol
__imp__CoCreateInstance at 20 referenced in function "public: bool
__thiscall wxFileName::GetShortcutTarget(class wxString const &,class
wxString &,class wxString *)" (?
GetShortcutTarget at wxFileName@@QAE_NABVwxString@@AAV2 at PAV2@@Z)
log.obj : error LNK2019: unresolved external symbol
__imp__MessageBoxW at 16 referenced in function "void __cdecl
wxSafeShowMessage(class wxString const &,class wxString const &)" (?
wxSafeShowMessage@@YAXABVwxString@@0 at Z)
msgout.obj : error LNK2001: unresolved external symbol
__imp__MessageBoxW at 16
utilscmn.obj : error LNK2019: unresolved external symbol
__imp__ShellExecuteExW at 4 referenced in function "bool __cdecl
wxLaunchDefaultBrowser(class wxString const &)" (?
wxLaunchDefaultBrowser@@YA_NABVwxString@@@Z)
basemsw.obj : error LNK2019: unresolved external symbol
__imp__PeekMessageW at 20 referenced in function "public: virtual void
__thiscall wxConsoleAppTraits::AlwaysYield(void)" (?
AlwaysYield at wxConsoleAppTraits@@UAEXXZ)
crashrpt.obj : error LNK2019: unresolved external symbol
__imp__SetCursor at 4 referenced in function "public: __thiscall
BusyCursor::BusyCursor(void)" (??0BusyCursor@@QAE at XZ)
crashrpt.obj : error LNK2019: unresolved external symbol
__imp__LoadCursorW at 8 referenced in function "public: __thiscall
BusyCursor::BusyCursor(void)" (??0BusyCursor@@QAE at XZ)
dde.obj : error LNK2019: unresolved external symbol
_DdeQueryStringW at 20 referenced in function "class wxString __cdecl
DDEStringFromAtom(struct HSZ__ *)" (?DDEStringFromAtom@@YA?
AVwxString@@PAUHSZ__@@@Z)
dde.obj : error LNK2019: unresolved external symbol
_DdeFreeStringHandle at 8 referenced in function "void __cdecl
DDEFreeString(struct HSZ__ *)" (?DDEFreeString@@YAXPAUHSZ__@@@Z)
dde.obj : error LNK2019: unresolved external symbol _DdeUninitialize at 4
referenced in function "void __cdecl wxDDECleanUp(void)" (?
wxDDECleanUp@@YAXXZ)
dde.obj : error LNK2019: unresolved external symbol
_DdeFreeDataHandle at 4 referenced in function __DDECallback at 32
dde.obj : error LNK2019: unresolved external symbol _DdeGetData at 16
referenced in function __DDECallback at 32
dde.obj : error LNK2019: unresolved external symbol
_DdeCreateDataHandle at 28 referenced in function __DDECallback at 32
dde.obj : error LNK2019: unresolved external symbol _DdeGetLastError at 4
referenced in function "void __cdecl DDELogError(class wxString const
&,unsigned int)" (?DDELogError@@YAXABVwxString@@I at Z)
dde.obj : error LNK2019: unresolved external symbol _DdeInitializeW at 16
referenced in function "void __cdecl wxDDEInitialize(void)" (?
wxDDEInitialize@@YAXXZ)
dde.obj : error LNK2019: unresolved external symbol _DdeDisconnect at 4
referenced in function "public: virtual bool __thiscall
wxDDEConnection::Disconnect(void)" (?
Disconnect at wxDDEConnection@@UAE_NXZ)
dde.obj : error LNK2019: unresolved external symbol
_DdeClientTransaction at 32 referenced in function "public: virtual bool
__thiscall wxDDEConnection::Execute(wchar_t const *,int,enum
wxIPCFormat)" (?Execute at wxDDEConnection@@UAE_NPB_WHW4wxIPCFormat@@@Z)
dde.obj : error LNK2019: unresolved external symbol
_DdeCreateStringHandleW at 12 referenced in function "struct HSZ__ *
__cdecl DDEAtomFromString(class wxString const &)" (?
DDEAtomFromString@@YAPAUHSZ__@@ABVwxString@@@Z)
dde.obj : error LNK2019: unresolved external symbol _DdeNameService at 16
referenced in function "public: virtual bool __thiscall
wxDDEServer::Create(class wxString const &)" (?
Create at wxDDEServer@@UAE_NABVwxString@@@Z)
dde.obj : error LNK2019: unresolved external symbol _DdeConnect at 16
referenced in function "public: virtual class wxConnectionBase *
__thiscall wxDDEClient::MakeConnection(class wxString const &,class
wxString const &,class wxString const &)" (?
MakeConnection at wxDDEClient@@UAEPAVwxConnectionBase@@ABVwxString@@00 at Z)
dde.obj : error LNK2019: unresolved external symbol _DdePostAdvise at 12
referenced in function "public: virtual bool __thiscall
wxDDEConnection::Advise(class wxString const &,wchar_t *,int,enum
wxIPCFormat)" (?
Advise at wxDDEConnection@@UAE_NABVwxString@@PA_WHW4wxIPCFormat@@@Z)
registry.obj : error LNK2019: unresolved external symbol
__imp__RegCloseKey at 4 referenced in function "bool __cdecl
KeyExists(void *,wchar_t const *)" (?KeyExists@@YA_NPAXPB_W at Z)







More information about the wx-users mailing list