[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    c++, gcc and macros
From:       "Ralf Edrich" <edrich () informatik ! fh-kl ! de>
Date:       2001-03-02 7:42:59
[Download RAW message or body]

Hi,

in my project I have files with the suffix .c and .cpp.

Now it seems that the .c-files are preprocessed and compiled with
gcc and the other ones with c++.

When I define some macros in the compiler-options (-DXYZ)
it seems as only c++ is affected by them and not gcc.

If I add them by hand everything is fine, if not errors occur.

Is this a fault by my - or can they somewhere else be set?

tia,

Ralf

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi,</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>in my project I have files with the suffix .c and 
.cpp.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Now it seems that the .c-files are preprocessed and compiled 
with</FONT></DIV>
<DIV><FONT size=2>gcc and the other ones with c++.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>When I define some macros in the compiler-options 
(-DXYZ)</FONT></DIV>
<DIV><FONT size=2>it seems as only c++ is affected by them and not 
gcc.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>If I add them by hand everything is fine, if not errors 
occur.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Is this a fault by my - or can they somewhere else be 
set?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>tia,</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Ralf</FONT></DIV></BODY></HTML>

-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic