Hi,
I am writing a C program which interfaces with a C++ library. The C++
library works fine with C. I was wondering if I need to use a C++
compiler (g++ in my case) to compile the C program or can I use a C
compiler (gcc)?
Thanks.
p.s. I understand all the extern "C" business. This is purely a do I
need to use a C++ compiler to compile a C program that uses a C++
library question.
I am writing a C program which interfaces with a C++ library. The C++
library works fine with C. I was wondering if I need to use a C++
compiler (g++ in my case) to compile the C program or can I use a C
compiler (gcc)?
Thanks.
p.s. I understand all the extern "C" business. This is purely a do I
need to use a C++ compiler to compile a C program that uses a C++
library question.
Comment