02-28-2002, 02:49 PM
|
#1
|
|
Member (7 bit)
Join Date: Feb 2002
Location: Indianapolis, IN
Posts: 110
|
gcc (linux)
Hi, I'm a beginner programmer with limited exposure, and am trying to teach myself C and Java out of some of the those self-taught books. However, I'm having problems with the gcc compiler on Linux. I have installed all the appropriate packages (through Red Hat install), am able to get a version number with the "gcc -- version" command and make a header, but when I try to make a macro (beginner macro with no output, only a definition) I get errors saying things like "file doesn't exist" and there's another one, I just can't remember it offhand. The code is from a Linux programming book and follows below:
bash# gcc -D_GNU_SOURCE hello.c
I can give some more info such as software versions and the actual errors, but I don't have time to get that right now (I'm in a hurry). Thought I'd get this on here in case the answer just popped out at someone, and they were like "Oh, I probably know what this kid's problem is!" Thanx a lot, hope you can help.
snow
|
|
|