Subject: | Cannot compile Wx using MSVC6 |
Hello Mattia,
I'm encountering a problem compiling all versions of Wx starting from 0.76 using MSVC6 and Alien-wxWidgets 0.48 / wxWidgets 2.8.10. Error happens on this stage of compiling:
cl -GF -TP /c /nologo /TP /MD /O2 /W4 /GR /EHsc -c -I. -I. -IC:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\lib -IC:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"0.95\" -DXS_VERSION=\"0.95\" "-IC:\bin\dev\perl\lib\CORE" -DWIN32 -D__WXMSW__ -D_UNICODE -DWXUSINGDLL -D_WINDOWS -DNOPCH -D_CRT_SECURE_NO_DEPRECATE Controls.c
Command line warning D4025 : overriding '/W4' with '/W3'
Command line warning D4025 : overriding '/O2' with '/O1'
Controls.c
cpp/combopopup.h(90) : warning C4003: not enough actual parameters for macro 'DEF_V_CBACK_WXOBJECTsP__VOID_'
cpp/odcombo.h(50) : error C2562: 'OnDrawItem' : 'void' function returning a value
cpp/odcombo.h(40) : see declaration of 'OnDrawItem'
cpp/odcombo.h(53) : error C2562: 'OnDrawBackground' : 'void' function returning a value
cpp/odcombo.h(41) : see declaration of 'OnDrawBackground'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
--
Serguei Trouchelle
I'm encountering a problem compiling all versions of Wx starting from 0.76 using MSVC6 and Alien-wxWidgets 0.48 / wxWidgets 2.8.10. Error happens on this stage of compiling:
cl -GF -TP /c /nologo /TP /MD /O2 /W4 /GR /EHsc -c -I. -I. -IC:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\lib -IC:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"0.95\" -DXS_VERSION=\"0.95\" "-IC:\bin\dev\perl\lib\CORE" -DWIN32 -D__WXMSW__ -D_UNICODE -DWXUSINGDLL -D_WINDOWS -DNOPCH -D_CRT_SECURE_NO_DEPRECATE Controls.c
Command line warning D4025 : overriding '/W4' with '/W3'
Command line warning D4025 : overriding '/O2' with '/O1'
Controls.c
cpp/combopopup.h(90) : warning C4003: not enough actual parameters for macro 'DEF_V_CBACK_WXOBJECTsP__VOID_'
cpp/odcombo.h(50) : error C2562: 'OnDrawItem' : 'void' function returning a value
cpp/odcombo.h(40) : see declaration of 'OnDrawItem'
cpp/odcombo.h(53) : error C2562: 'OnDrawBackground' : 'void' function returning a value
cpp/odcombo.h(41) : see declaration of 'OnDrawBackground'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
--
Serguei Trouchelle