LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-19-2004, 08:33 AM   #1
gamehack
Member
 
Registered: Jun 2003
Location: Sevenoaks, UK
Distribution: Ubuntu
Posts: 183

Rep: Reputation: 30
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
 
Old 01-19-2004, 09:19 AM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
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.
 
  


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
Strange GCC compile error with C code exvor Programming 16 08-23-2005 06:05 PM
Extremely strange bug in gcc/g++ Maidros Linux - Software 3 05-08-2004 06:28 AM
Strange warnings with -Wredundant-decls option (gcc-3.4.0) yuray Linux - Software 0 05-03-2004 06:41 AM
strange gcc compilation errors in Tru64 UNIX Eric F Programming 0 12-18-2003 02:22 PM
Frustrated compilations ottolinux Linux - Newbie 3 09-10-2001 07:17 PM

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

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