couldn't get gcc to work

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

couldn't get gcc to work

Postby blue » Fri Nov 08, 2002 6:27 am

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.
blue
 

Postby AsadR » Fri Nov 08, 2002 2:19 pm

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
AsadR
Lance Naik
 
Posts: 36
Joined: Sat Sep 14, 2002 11:27 am
ICQ: 8374759
Location: Khi.pk


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron