So I'm not sure where to start exactly, but here are the main points:
using Kubuntu 12.04
- used 'make' and stuff on a project using the Konsole and it compiled and ran fine (this project used some third party libraries and headers), I believe using gcc 4.6
- tried to include the headers and libs in a Kdevelop project, but when I attempt to build the project, it gives me a long list of errors in one of the headers that look like:
error: unexpected initializer before 'token' .
these errors are contained in an extern "C" block, which I understand tell the compiler to compile the code inside the block with a C compiler opposed to a C++ one, and this block has the correct syntax format for this, as follows:
According to what I found on various forums about this, there shouldn't be a semicolon at the last brace there, but it doesn't solve the error.Code:#if defined __cpluscplus extern "C" { //list of function defs #if defined __cplusplus }; #endif
I'm thinking this could be a compiler issue; unfortunately I won't have access to this computer until tuesday to check (although I'm not really sure how I would go about checking...). However, I'm sure that the C++ compiler Kdevelop uses should be able to handle the extern block, right?
Any thoughts? Thanks, and I'm sorry if I left everything out. Also, I may be way off the mark, so please bear with me there too :P