Please read completely before you reply:
I have a project that tries to return a struct * to perl, but the
compilation of the stub fails with a syntax error:
==========Cut Here===========
Microsoft (R) Library Manager Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
rem clib.lib
G:\Perl\bin\perl.exe -IG:\Perl\lib -IG:\Perl\lib
G:\Perl\lib\ExtUtils/xsubpp -typemap G:\Perl\lib\ExtUtils\typemap -typemap
typemap teststruct.xs > teststruct.xsc && G:\Perl\bin\perl.exe -IG:\Perl\lib
-IG:\Perl\lib -MExtUtils::Command -e mv teststruct.xsc teststruct.c
Please specify prototyping behavior for teststruct.xs (see perlxs manual)
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.01\"
-DXS_VERSION=\"0.01\" -IG:\Perl\lib\CORE teststruct.c
teststruct.c
teststruct.c(61) : error C2143: syntax error : missing ')' before 'type'
teststruct.c(61) : error C2059: syntax error : ')'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
==========Cut Here===========
To make everyone's life easier, I've put the entire example that reproduces
this problem up on http://www.grimoire7.com/teststruct.zip. Feel free to
download the archive and play with the code. Please NOTE: This is NOT a
syntax error in my library - it's an error in the c code generated from the
.xs file. Unfortunately, I'm not terribly skilled in the underlying guts of
how this all works - so for me it's a broken abstraction.
I'm using the latest 600 build right from www.activestate.com.
Any insight would be much appreciated. Thanks.
--drsmith
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs