jossion
Member level 3

Hi
I have one CPP file with serial port data transfer win32 API's and another set of C files having basic calculations(Image processing). I would like to compile these files in one project and build an exe. But its not possible. I tried many ways.
simply called the CPP file as a function and tried to compile. That was not working.
Then renamed all C files to CPP(since C files had only basic calculations) and then tried to compile. It was showing errors to some extern variables and so on.
What I would like to know is- is there any settings to be done to the compiler to compile mixed C and C++ files in one project??
Thanking you in advance.
I have one CPP file with serial port data transfer win32 API's and another set of C files having basic calculations(Image processing). I would like to compile these files in one project and build an exe. But its not possible. I tried many ways.
simply called the CPP file as a function and tried to compile. That was not working.
Then renamed all C files to CPP(since C files had only basic calculations) and then tried to compile. It was showing errors to some extern variables and so on.
What I would like to know is- is there any settings to be done to the compiler to compile mixed C and C++ files in one project??
Thanking you in advance.