[XP, VC++ 2003] Errors compiling wxWidgets-2.6.3
Exadrina
noM at il.it
Fri Nov 10 03:42:47 PST 2006
Hi,
I get the errors below, trying to compile wxWidgets-2.6.3
on Win WP with VC++ 2003
<BEGIN>
E:\USER\CPP\wxWidgets-2.6.3\build\msw>nmake -f makefile.vc USE_ODBC=1 SHARED=1
BUILD=debug
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
link /DLL /NOLOGO /OUT:..\..\lib\vc_dll\wxbase26d_vc_custom.dll
/DEBUG /LIBPATH:..\..\lib\vc_dll
@C:\DOCUME~1\V8TEST~2\LOCALS~1\Temp\nm6F.tmp
Creating library ..\..\lib\vc_dll\wxbase26d.lib and object
.\..\lib\vc_dll\wxbase26d.exp
basedll_object.obj : error LNK2019: unresolved external symbol "void *
__cdecl wxDebugAlloc(unsigned int,char*,int,bool,bool)"
(?wxDebugAlloc@@YAPAXIPADH_N1 at Z) referenced in function "public: static
void * __cdecl wxObject::operator new(unsigned int,char const *,int)"
(??2wxObject@@SAPAXIPBDH at Z)
basedll_object.obj : error LNK2019: unresolved external symbol "void
__cdecl wxDebugFree(void *,bool)" (?wxDebugFree@@YAXPAX_N at Z) referenced in
function "public: static void __cdecl wxObject::operator delete(void *)"
(??3wxObject@@SAXPAX at Z)
.\..\lib\vc_dll\wxbase26d_vc_custom.dll : fatal error LNK1120: 2
unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
E:\USER\CPP\wxWidgets-2.6.3\build\msw>nmake -f makefile.vc USE_ODBC=1 SHARED=0
BUILD=debug
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
</END>
As you can see, if I compile static libraries I have no errors.
I modified $(WXWIN)\include\wx\setup.h as reported below
<BEGIN>
// Recommended setting: 0 (please update your code)
#define WXWIN_COMPATIBILITY_2_4 1 // Original
#define WXWIN_COMPATIBILITY_2_4 0 // Modified
// Recommended setting: 1 if you are not using a memory debugging tool,
else 0
#define wxUSE_MEMORY_TRACING 0 // Original
#define wxUSE_MEMORY_TRACING 1 // Modified
// Define 1 to use ODBC classes
#define wxUSE_ODBC 0 // Original
#define wxUSE_ODBC 1 // Modified
// Recommended setting: whatever your compiler likes more
#define wxUSE_IOSTREAMH 1 // Original
#define wxUSE_IOSTREAMH 0 // Modified
</END>
Thanks for your attention.
--
questo articolo e` stato inviato via web dal servizio gratuito
http://www.newsland.it/news segnala gli abusi ad abuse at newsland.it
More information about the wx-users
mailing list