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
Re: Compiling C code from B::C
by Randy Kobes other posts by this author
Jul 31 2004 5:15AM messages near this date
view in the new Beta List Site
Re: Compiling C code from B::C | -x file tests not working
On Fri, 30 Jul 2004 prichcre@[...].com wrote:

>  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:
[ ... ]
As Rob mentioned, it's unlikely you'll be able to use gcc
in compiling a program and linking it to a lib compiled
with VC++ 6. But in any case, those functions are contained
in perl58.lib (in C:\Perl\lib\CORE), which will in turn
invoke perl58.dll (in C:\Perl\bin). You can see them
explicitly by doing a
   C:\Perl\bin>  dumpbin /exports perl58.dll | grep ppaddr
(assuming you have a 'grep' utility), where 'dumpbin' is
a VC++ tool.

Probably the safest option you have is to compile Perl
yourself, either with gcc or with the free version of VC++
7; with gcc you'll lose binary compatibility with
ActivePerl, and with VC++ 7 there may be problems in certain
circumstances with binary compatibility (search the list
archives to see some discussions on this point).

-- 
best regards,
randy kobes
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:


Sisyphus
Glenn Linderman
Randy Kobes

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