ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved