Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Errors using DLL from Inline C with 32-bit Perl

by syphilis (Archbishop)
on Jan 30, 2020 at 21:53 UTC ( [id://11112141]=note: print w/replies, xml ) Need Help??


in reply to Re: Errors using DLL from Inline C with 32-bit Perl
in thread Errors using DLL from Inline C with 32-bit Perl

make sure that the same compiler flags are used too

Good point - I now recall being tripped up by different optimization levels in the past.
However, I think the OP has probably already followed that advice by having built the executable with:
gcc -s -O2 -DWIN32 -fwrapv -fno-strict-aliasing -mms-bitfields -o fite +st.exe fitest.c -lfreeimage
Maybe there's some other pertinent option that has been omitted. We can't tell unless we see the output of perl -V:ccflags

There must be a Makefile somewhere created by Inline::C

Also a good point - it's usually under the ./_Inline/build directory, but you'll need to configure the Inline::C script with CLEAN_AFTER_BUILD => 0 to prevent the Makefile being automatically deleted when the compilation successfully completes.

Cheers,
Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11112141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-24 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found