in reply to Dynaloader/XS: sharing C symbols across shared objects
On linux (with gcc) that outputs simply Compiled fine, but on windows (using the MinGW port of gcc) the build phase fails with:use warnings; use Inline C => <<'EOC'; void extern crap(); void foo() { crap(); } EOC print "Compiled fine";
This is, no doubt, old news to many here ... but the starkness of the differences took me somewhat by surprise.try_pl_d349.o:try_pl_d349.c:(.text+0x5): undefined reference to `crap' collect2: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\try_pl_d349\try_p +l_d349.dll
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dynaloader/XS: sharing C symbols across shared objects
by creamygoodness (Curate) on Jun 10, 2008 at 19:11 UTC | |
by syphilis (Archbishop) on Jun 10, 2008 at 23:18 UTC | |
by creamygoodness (Curate) on Jun 11, 2008 at 00:09 UTC |