Suppose if i have a c++ file and c file. Created object files for both of them. Now i need to link both into one executable. While i’m trying it is giving errors about c++. Can anyone help me about that.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Take a look at this page: http://dsc.sun.com/solaris/articles/mixing.html
Article
Mixing C and C++ Code in the Same Program
Here you will find all needed info like:
and so long …