Can C and C++ object files be linked into an executable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: gcc-help@xxxxxxxxxxx
- Subject: Can C and C++ object files be linked into an executable?
- From: Ray Hurst <rhurst2@xxxxxxx>
- Date: Fri, 26 Jan 2007 11:41:32 -0800
- User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
Hi,
I have a code that is compiled in C and I need to link in C++ object
files. I need to know if C++ object files created with a C++ compiler
can be linked with C object files created with the C compiler.
I have never attempted this. I have either written the entire project in
C or C++. I have mixed C code with C++ code by placing the C code in a
namespace. I have also interfaced C++ code to C code by createing a C
wrapper for the C++ object but everything was compiled with an C++ compiler.
Ray
[Index of Archives]
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]