Forum: Programming and Scripting
Topic: Getting gcc-3.0 to work
started by: NNP
Posted by NNP on Mar. 31 2006,11:07
Hi, i just apt-get'ed gcc-3.0 but im having trouble compiling a 'hello world' test program. It appears gcc cant find some required headers. The code im compiling is
Code Sample |
#include <stdio.h>
int main() { int i;
i = 5;
printf("i is %d", i);
return 0; }
|
and the error is
Code Sample |
r/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:138:28: bits/stdio_lim.h: No such file or directory /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:151: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:158: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:193: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:211: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:263: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:283: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:288: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:337: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:360: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:364: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:384: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:416: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:451: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:464: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:472: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:486: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:504: parse error before "fpos_t" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:507: parse error before '*' token /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:540: parse error before "THROW" /usr/lib/gcc-lib/i386-linux/3.0.4/include/stdio.h:544: parse error before "THROW" test.c:3: syntax error before "int"
|
Unfortunately thats not all of it but you get the idea. It cant find some header files. Its probably worth pointing out that the directory its looking for that header file in 'bits/' doesnt exist in /usr/include.
ANy ideas?
Thanks,
nnp
Posted by ubermai on Dec. 23 2006,09:08
hey cool i get similar errors.
i haven't figured out how fix it.
Posted by gusanto on Jan. 16 2007,16:47
Hi there,
I need a help. I tried DSL Live CD last night, it's running fast on my P II machine.
I want to compile and run my fortran 77 code. What should I do to make the g77 or g95 available. In my office, I just g95 to compile my fortran code.
Thanks.
Posted by humpty on Jan. 16 2007,23:30
the frugal gcc's work okay. looks like a HD-install issue.
Posted by gusanto on Jan. 18 2007,03:29
Quote (humpty @ Jan. 16 2007,18:30) |
the frugal gcc's work okay. looks like a HD-install issue. |
Please step by step. I am newbie don't know how. Thanks
Posted by humpty on Feb. 02 2007,13:13
1. do a frugal install.
2. put gcc1-with-libs.dsl in the root directory of your boot partition.
3. reboot.