combind the C and C++ program

S

s88

Hi all:
I encounter a problem in my C++ project which I have to call
some functions written in C. Could I just include the C library without
g++ recompilation??

Thanks in advance,
Dave.
 
R

Rolf Magnus

s88 said:
Hi all:
I encounter a problem in my C++ project which I have to call
some functions written in C. Could I just include the C library without
g++ recompilation??

Yes.
 
S

s88

:D Thank you very much!!!
Could you tell me how to make it???

I mean, just compile the C++ file with the C object/library files?
or need to add some C++ flags?

best regards,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top