Subject: | unresolved external symbol _sv2request_rec |
At first I was getting stuff like
C:\Program Files\Microsoft Visual Studio\VC98\include\malloc.h(106) : error C2059: syntax error : '('
C:\Program Files\Microsoft Visual Studio\VC98\include\malloc.h(107) : error C2059: syntax error : '('
then I prepended the following to Icon.xs
#include <malloc.h>
#include <signal.h>
and then I am faced with
link -out:blib\arch\auto\Apache\Icon\Icon.dll -dll -nologo -nodefaultlib -release -libpath:"C:/Perl\lib\CORE" -machine:x86 Icon.ob
j mod_icon.obj C:\Perl\lib\CORE\perl56.lib C:\Apache\Apache\libexec\ApacheCore.lib "C:\Program Files\Microsoft Visual Studio\VC98\lib\oldn
ames.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\kernel32.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\user32.lib" "C
:\Program Files\Microsoft Visual Studio\VC98\lib\gdi32.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\winspool.lib" "C:\Program Fil
es\Microsoft Visual Studio\VC98\lib\comdlg32.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\advapi32.lib" "C:\Program Files\Microso
ft Visual Studio\VC98\lib\shell32.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\ole32.lib" "C:\Program Files\Microsoft Visual Stud
io\VC98\lib\oleaut32.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\netapi32.lib" "C:\Program Files\Microsoft Visual Studio\VC98\li
b\uuid.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\wsock32.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\mpr.lib" "C:\
Program Files\Microsoft Visual Studio\VC98\lib\winmm.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\version.lib" "C:\Program Files\
Microsoft Visual Studio\VC98\lib\odbc32.lib" "C:\Program Files\Microsoft Visual Studio\VC98\lib\odbccp32.lib" "C:\Program Files\Microsoft Vi
sual Studio\VC98\lib\msvcrt.lib" -def:Icon.def
Creating library blib\arch\auto\Apache\Icon\Icon.lib and object blib\arch\auto\Apache\Icon\Icon.exp
Icon.obj : error LNK2001: unresolved external symbol __sv2request_rec
Icon.obj : error LNK2001: unresolved external symbol __perl_request_rec
blib\arch\auto\Apache\Icon\Icon.dll : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
which I foolish quiet with
#define sv2request_rec
#define perl_request_rec
The module seems to load OK, but I don't feel those defines are kosher