couldn't get gcc to work

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Locked
blue

couldn't get gcc to work

Post by blue »

as salam aliekum all,
i m new at linux programming.
the problem is tht every time i compile a code,gcc rejects it saying that it couldn't find the headerfiles.
please help.
AsadR
Lance Naik
Posts: 36
Joined: Sat Sep 14, 2002 11:27 am
Location: Khi.pk
Contact:

Post by AsadR »

It would help if you could quote the exact error msg and the corresponding line in the source code that generated the error.

Also, make sure you've installed gcc correctly (if already came installed, there shouldn't be any problem).

Maybe there's some specific header file that missing (ie: PCAP, libnet, etc...), which you need to download seperately (this will be mentioned in the program you're trying to compile's documentation in the REQUIREMENTS section).

Maybe you're including the wrong files (ie: in linux there isn't any conio.h)

Also, in UNIX, the directories are delimited by a '/' instead of the MS-DOS & Windows '\', which means that

#include <sys\time.h>
will be
#include <sys/time.h>
in UNIX.

:?
Asad
Locked