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 Sisyphus other posts by this author
Aug 6 2004 5:37AM messages near this date
view in the new Beta List Site
Compiling C code from B::C | Re: Compiling C code from B::C
Nick Ing-Simmons wrote:

>  
>  You _should_ be able to get gcc to link with perl58.lib 
>  (you may need to rename it perl58.a).
>  

I just tried it out and that *does* work for me - but only if I use the 
MinGW-built perl's header (.h) files. If I try to use the 
ActiveState-built perl's header files, then the executable compiles ok, 
but segfaults when executed (irrespective of which perl58.dll gets used).
If there's no workaround for that problem then the OP is still going to 
need a MinGW-built perl to succeed :-)

Actually, if you're using the '-l' switch to specify library files 
you'll want to rename 'perl58.lib' to 'libperl58.a :

gcc -ID:\perl\lib\CORE foo.c -LE:\AS_Perl\lib\CORE -lperl58

Alternatively, if you simply provide the full path to perl58.lib, then 
there's no need to rename it at all:

gcc -ID:\perl\lib\CORE foo.c E:\AS_Perl\lib\CORE\perl58.lib

(D:\perl is my MinGW-built perl, and E:\AS_Perl is the ActiveState-built 
perl.)

Cheers,
Rob

_______________________________________________
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