in reply to Re: How to make an XS module with a different C compiler?
in thread How to make an XS module with a different C compiler?

So, are you telling me that if I have two vendors that I get libraries from and both will only give me the .so files and each choose to use a different compilier to build their product that I would not be able to use one installation of Perl to access them because I would have to choose one of those compiliers to build my Perl?
  • Comment on Re^2: How to make an XS module with a different C compiler?

Replies are listed 'Best First'.
Re^3: How to make an XS module with a different C compiler?
by Fletch (Bishop) on Jan 18, 2005 at 03:53 UTC

    Maybe yes, maybe no. It all depends on the OS, the compiler used, the phase of the moon. You may get lucky and figure out what flags are causing cc to choke (-fpic is a gcc-ism for instance that's causing problems in your output below).

    It's even worse with C++ though (there's no standard for name mangling, for example, so two different compilers can make completely different symbols in the output object for the same int foo( char *bar, double& baz ).