LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-11-2004, 02:59 PM   #1
niverson
Member
 
Registered: Jun 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 128

Rep: Reputation: 15
gcc option -E use.


Does anyone have a pointer to using gcc's -E option? This option should produce a target file that has gone thorough only the C preprocessor. I would like to look at some macroized state table that are built up by the preprocessor. I tried 'gcc -E file.c -o file.c'

I read the gcc documentation for the -E option but it didn't make sense to me?

Thanks,
Nate
 
Old 10-11-2004, 03:02 PM   #2
m00t00
Member
 
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292

Rep: Reputation: 30
gcc -E file.c -o file.c

eh. The two file.c's are a mistake I hope.

Try gcc -E file.c -o file.i

or just skip the -o
you dont need it, gcc will stick it in file.i anyway
 
Old 10-11-2004, 04:06 PM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Code:
echo '#include <string.h>'  | gcc -E -
 
  


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 unrecognized option ruben22 Linux From Scratch 9 11-12-2008 04:41 AM
what does the option -s of gcc mean ? hongxing Linux - Software 3 11-28-2005 08:12 PM
Strange warnings with -Wredundant-decls option (gcc-3.4.0) yuray Linux - Software 0 05-03-2004 06:41 AM
GCC option "-fshared-data" doesn't work jph Programming 0 08-05-2003 05:39 AM
GCC has option for Xeon cpu ??? xudeyong Programming 1 05-22-2003 01:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:37 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