Syntax errors in include files
Ralf Nolden
nolden at kde.org
Tue Jan 30 06:26:53 GMT 2001
Phil wrote:
>
> Hello,
>
> Kdevelop 1.3 is reporting syntax errors in include files such as stdlib.h. A
> typical error is "syntax error before '('.
>
> The problem seems to be due to long lines of code being split over two or
> more lines. Increasing the length on a line in the editor before a line wrap
> occurs initially cured the problem. However when include files such as
> sys/types.h or sys/io.h are added to a project the problem of syntax errors
> reoccurs.
>
> What is the cure? Is this yet another incompatibility issue between kdevelop
> and Mandrake?
No. I think extern "C" is the keyword here. So you have to use
extern "C"{
#include <stdlib.h>
}
Please try that. It´s not kdevelop who´s reporting the syntax error,
it´s gcc ;))
Ralf
--
The only way to get rid of a temptation is to yield to it. Oscar Wilde
**********************************
Ralf Nolden
The KDevelop Project
http://www.kdevelop.org
nolden at kde.org
rnolden at kdevelop.org
**********************************
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list