Compiling C code from B::C
by other posts by this author
Jul 31 2004 2:45AM messages near this date
view in the new Beta List Site
Re: error using perlchat-0.1.1
|
Re: Compiling C code from B::C
I'm playing with the B::C complier backend and am having trouble compiling
the C-code that is produces. I get a bunch of linker error messages like
"[Linker error] undefined reference to `PL_ppaddr'". The names look like
they might be C functions. Can someone tell where I might find these
functions?
I am running ActiveState perl 5.8.4 on Windows/XP Home.
I originally posted this on the perl-win32-porters list and a subscriber
there, sisyphus, suggested that I also post here. His reply was (in part)
"However, if I'm not mistaken, the term "undefined reference" indicates
you're using the gcc compiler, and the ActiveState perl58.lib was built
with MSVC++ 6.0. You may well find that lib file is incompatible with
gcc."
I am, indeed using the gcc compiler. Here are the first few lines of my
compile log:
____________________________________________________________________________
_______________
Compiler: Default compiler
Executing gcc.exe...
gcc.exe "C:\Documents and Settings\Phil Richcreek\Perl\hello_pl.c"
-o "C:\Documents and Settings\Phil Richcreek\Perl\hello_pl.exe"
-I"C:\Dev-Cpp\include" -I"C:\Perl\lib\core" -I"C:\Perl\lib\core\sys"
-I"C:\Perl\lib\core\arpa" -I"C:\Perl\lib\core" -L"C:\Dev-Cpp\lib"
-L"C:\perl\lib\core -lperl58.lib"
In file included from C:/Perl/lib/core/perl.h:2838,
from C:/Documents and Settings/Phil
Richcreek/Perl/hello_pl.c:2:
C:/Dev-Cpp/include/math.h:327:1: warning: "isnan" redefined
In file included from C:/Perl/lib/core/win32thread.h:4,
from C:/Perl/lib/core/perl.h:2056,
from C:/Documents and Settings/Phil
Richcreek/Perl/hello_pl.c:2:
C:/Perl/lib/core/win32.h:226:1: warning: this is the location of the
previous definition
C:\DOCUME~1\PHILRI~1\LOCALS~1\Temp/ccwJcaaa.o(.text+0x91):
hello_pl.c: undefined reference to `Perl_get_context'
C:\DOCUME~1\PHILRI~1\LOCALS~1\Temp/ccwJcaaa.o(.text+0x9a):hello_pl.c:
undefined reference to `Perl_Tstack_sp_ptr'
C:\DOCUME~1\PHILRI~1\LOCALS~1\Temp/ccwJcaaa.o(.text+0xa2):hello_pl.c:
undefined reference to `PL_ppaddr'
____________________________________________________________________________
__________________
Phil
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Randy Kobes
Nick Ing-Simmons
Sisyphus
Sisyphus
|