B
Bit byte
I have an application written in C (actually PostgreSQL). The
application appears to have been built using the Mingw set of tools
(mingw compiler tools).
I want to write an extension library library to be used by this
application. Do I have to use the same compiler used to create the
application - or is this irrelevant - i.e. can I use ANY compiler to
write the extension library.
The larger question I want to ask really (for the purists amongst you
who will think this is a platform specific question) is:
Can a C application built with one compiler load and use a shared
library built by another compiler?
If the answer is no, I will be very grateful to know what the technical
reasons are.
application appears to have been built using the Mingw set of tools
(mingw compiler tools).
I want to write an extension library library to be used by this
application. Do I have to use the same compiler used to create the
application - or is this irrelevant - i.e. can I use ANY compiler to
write the extension library.
The larger question I want to ask really (for the purists amongst you
who will think this is a platform specific question) is:
Can a C application built with one compiler load and use a shared
library built by another compiler?
If the answer is no, I will be very grateful to know what the technical
reasons are.