LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-11-2005, 04:53 AM   #1
bramadams
LQ Newbie
 
Registered: Jul 2004
Location: Waregem, Belgium
Distribution: Slackware 10.2
Posts: 27

Rep: Reputation: 15
C-cpp forgets to remove gcc-keywords and to expand __restrict-macro


Hi,

I've got some tools which work on preprocessed C-files. On my Slackware 10.0- and RH 9.0-boxes, all goes well. However, another user running FC3 on an Athlon 800 with gcc 3.4.2 encountered some problems. Those were FC-specific, because nothing went wrong when he worked on a Debian box.

When I compared his preprocessed file with a normal one, I saw that gcc-keywords like __extension__, __attribute__, ... were all there, unlike the usual case. Now, I was able to circumvent this somehow, but the resulting file still gave trouble.

On second look, I saw that the __restrict-macro in the signature of fopen(...), freopen(...), ... wasn't expanded. After removing this macro, everything worked as normal again.

Both issues led me to the idea that something was wrong with the cpp-preprocessor (some switch (un)set by default?) or with some environment variable. As I don't use FC3, I don't have a clue as to where I should look.

So, has anybody experienced similar trouble preprocessing a C-file? Any ideas about whether it's a bug or an incomplete environment?

Any help appreciated,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC 4.0 specific keywords abk4523 Programming 1 09-22-2005 12:03 PM
gcc-cpp problems (Mandrake 10.1) fatenabu Linux - Software 0 07-27-2005 01:42 PM
#defining a macro inside a macro? saravkrish Programming 1 05-24-2005 09:48 PM
problem with cpp and gcc limboonlee Debian 2 04-25-2005 12:19 PM
Now I have gcc/cpp/cpp, but still can't install sfingerh Linux - Software 2 07-30-2002 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration