|
|
2010-02-23
, 15:44
|
|
|
Posts: 516 |
Thanked: 643 times |
Joined on Oct 2009
@ Denmark/Poland
|
#2
|


| The Following User Says Thank You to hopbeat For This Useful Post: | ||
|
|
2010-02-23
, 15:49
|
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#3
|
| The Following User Says Thank You to nicolai For This Useful Post: | ||
|
|
2010-02-24
, 11:20
|
|
Posts: 61 |
Thanked: 77 times |
Joined on Dec 2009
@ Lancaster
|
#5
|
|
|
2010-02-24
, 11:51
|
|
Posts: 353 |
Thanked: 263 times |
Joined on Dec 2009
@ Finland
|
#6
|
#ifdef CPLUSPLUS
// I don't remember if
// it was CPLUSPLUS or something else
extern "C" {
#endif
// content of .c file here
#ifdef CPLUSPLUS
}
#endif
I am porting a simple camera application from a Maemo C project to QT C++ project. I always thought one can mix .c and .cpp files in the project and share the variables through out the project.
I added the .c files to my .pro file and tired to compile it. I got tones of errors. Am I missing something? Is this possible at all? Is this good practice?
Thank you for your advice.
Klen