This is a follow up to my previous email.
To make sure its not my code at fault, I ran this really simple C code with
Inline but this doesn't compile either!!
#!/usr/bin/perl -w
use strict;
use cCode;
print "9 + 16 = ", add(9, 16), "\n";
print "9 - 16 = ", subtract(9, 16), "\n";
cCode.pm
--------------
#!/usr/bin/perl -w
use strict;
use Inline C => <<'EOC';
int add(int x, int y) {
return x + y;
}
int subtract(int x, int y) {
return x - y;
}
EOC
1;
This is the error I get. Thanks a lot for your help.
Had problems bootstrapping Inline module 'cCode_pm_b8ac'
Can't load
'/Users/gathreya/MyWork/convertingPerlToC/_Inline/lib/auto/cCode_pm_b8ac/cCode_pm_b8ac.bundle'
for module cCode_pm_b8ac:
dlopen(/Users/gathreya/MyWork/convertingPerlToC/_Inline/lib/auto/cCode_pm_b8ac/cCode_pm_b8ac.bundle,
1): no suitable image found. Did find:
/Users/gathreya/MyWork/convertingPerlToC/_Inline/lib/auto/cCode_pm_b8ac/cCode_pm_b8ac.bundle:
mach-o, but wrong architecture at
/System/Library/Perl/5.8.8/darwin-thread-multi-2level/DynaLoader.pm line 230.
at /Library/Perl/5.8.6/Inline.pm line 500
at perllib/cCode.pm line 4
BEGIN failed--compilation aborted at perllib/cCode.pm line 14.
Compilation failed in require at testingInline.pl line 4.
BEGIN failed--compilation aborted at testingInline.pl line 4.
Gayathri
_________________________________________________________________
Search from any Web page with powerful protection. Get the FREE Windows Live
Toolbar Today!
http://get.live.com/toolbar/overview