H
horacius.rex
Hi,
I don't know if it is better to post this question to a C or C++
group, so my apologies.
My general question:
I have a very big C++ program (Main.cpp) which compiles on machine X
with compiler XA++.
I also have a function whose source code (function.c) in C (not C++)
compiles on machine X with compiler XBcc.
XA++ and XBcc are compilers from different companies.
On machine Y I can do:
1- compilation of Main.cpp to object file Main.o using compiler Y++
2- compilation of function.c to objetc file function.o using compiler
Ycc
Compilers Y++ and Ycc come from the same company. "Y" could be for
instance the GNU compiler so we would have g++ and gcc.
3- Main.o sends input data to function.o and function.o returns
calculated data to Main.o. Now I link in some way Main.o with
function.o and create Program_in_Y.exe.
My general question is if I can do the same procedure in machine X.
Perhaps the same question is if objects created with different
compilers on the same machine can link in some way and create an
executable or binary file.
Thanks.
I don't know if it is better to post this question to a C or C++
group, so my apologies.
My general question:
I have a very big C++ program (Main.cpp) which compiles on machine X
with compiler XA++.
I also have a function whose source code (function.c) in C (not C++)
compiles on machine X with compiler XBcc.
XA++ and XBcc are compilers from different companies.
On machine Y I can do:
1- compilation of Main.cpp to object file Main.o using compiler Y++
2- compilation of function.c to objetc file function.o using compiler
Ycc
Compilers Y++ and Ycc come from the same company. "Y" could be for
instance the GNU compiler so we would have g++ and gcc.
3- Main.o sends input data to function.o and function.o returns
calculated data to Main.o. Now I link in some way Main.o with
function.o and create Program_in_Y.exe.
My general question is if I can do the same procedure in machine X.
Perhaps the same question is if objects created with different
compilers on the same machine can link in some way and create an
executable or binary file.
Thanks.