For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2005 > perlembed : makefiles on win32









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author perlembed : makefiles on win32
Toolscripts

2005-03-23, 3:56 am


I've tried following the perlembed manual example and the downloaded ExtUtils-Embed-1.14 on windows but the generated makefiles are wrong. Either they say "Expecting Rule Or Pattern found neither" or in one case it couldn't find perl.h and other headers.
Using Mingw, dont have VCC, tried with mingw32-make, nmake, dmake.
Does anyone have some example files that work that I can see?
Here's probably the problem, Im using perl-5.8.6.

I found it easy enough to compile with my own header, but it crashes on start.

--t
Toolscripts

2005-03-23, 8:55 pm

FYI it's probably not the makefiles causing the problem if you can compile.

PERL_SYS_INIT3(&argc,&argv,&env); at the start of main solved my problem,
at least for now. See miniperlmain.c for example. (add
int PL_use_safe_putenv =1;
int PL_do_undump = 0;
if needed)

--t

----- Original Message -----
From: "toolscripts" <toolscri@toolscripts.com>
To: <beginners@perl.org>
Sent: Tuesday, March 22, 2005 5:00 PM
Subject: perlembed : makefiles on win32



I've tried following the perlembed manual example and the downloaded
ExtUtils-Embed-1.14 on windows but the generated makefiles are wrong. Either
they say "Expecting Rule Or Pattern found neither" or in one case it
couldn't find perl.h and other headers.
Using Mingw, dont have VCC, tried with mingw32-make, nmake, dmake.
Does anyone have some example files that work that I can see?
Here's probably the problem, Im using perl-5.8.6.

I found it easy enough to compile with my own header, but it crashes on
start.

--t


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com