hi all,
I am new to the list and to Inline::C.
I try to use Inline::C under w2k, using perl from
ActiveState ActivePerl Build 633 an visual C++ 6.0
It seems that LIBS => '-luser32'; never works and i
have this error:
Microsoft (R) Program Maintenance Utility Version
6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights
reserved.
C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib
C:\Perl\lib\ExtUtils/xsubpp -typemap
C:\Perl\lib\ExtUtils\typemap
main_C_Noname4_pl_aad40da0ccfa32ebd73778dbda251415.xs
>
main_C_Noname4_pl_aad40da0ccfa32ebd73778dbda251415.xsc
&& C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib
-MExtUtils::Command -e mv
main_C_Noname4_pl_aad40da0ccfa32ebd73778dbda251415.xsc
main_C_Noname4_pl_aad40da0ccfa32ebd73778dbda251415.c
cl -c -nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE
-DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD
-DNDEBUG -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\"
-IC:\Perl\lib\CORE
main_C_Noname4_pl_aad40da0ccfa32ebd73778dbda251415.c
main_C_Noname4_pl_aad40da0ccfa32ebd73778dbda251415.c
main_C_Noname4_pl_aad40da0ccfa32ebd73778dbda251415.xs(6)
: error C2143: syntax error : missing '{' before '-'
main_C_Noname4_pl_aad40da0ccfa32ebd73778dbda251415.xs(6)
: error C2059: syntax error : '-'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
If I dont' use LIBS all work, but I cant include
others
libraries :)
Any help is appreciated.
Thanks
rOger
This is the script:
use Inline C => DATA =>
LIBS => '-luser32';
$text = "@ARGV" || 'Inline.pm works with MSWin32.
Scary...';
WinBox('Inline Text Box', $text);
__END__
__C__
#include <windows.h>
int WinBox(char* Caption, char* Text) {
return MessageBoxA(0, Text, Caption, 0);
}
______________________________________________________________________
Scarica il nuovo Yahoo! Messenger: con webcam, nuove faccine e tante altre novit�.
http://it.yahoo.com/mail_it/foot/?http://it.messenger.yahoo.com/