LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Strange Compilations Error with gcc 3.3.2 (https://www.linuxquestions.org/questions/debian-26/strange-compilations-error-with-gcc-3-3-2-a-136326/)

gamehack 01-19-2004 08:33 AM

Strange Compilations Error with gcc 3.3.2
 
I program a little bit in C/C++ so i went to compile a program on my pc so I wrote the program and went into compiling,but when I typed gcc -o testing mysource.c it gave me an error.I thought that it was some kind of syntax error so I write a simple program:
Code:

#include <stdio.h>

int main()
{

printf("This is a test");
    return 0;
}

After that I tried to compile and that and it gave me this error:
test.c:2:19: stdio.h: No such file or directory
So I installed gcc 2.95 and gcc 3.2 but it is always the same.Some suggestions ?
thanks to all

jim mcnamara 01-19-2004 09:19 AM

Make sure /usr/include (or wherever you placed the include files) is in your PATH.

I use another compiler most of the time, but many of them also support an environment variable that indicates where the include files live.


All times are GMT -5. The time now is 12:26 PM.