1. These are not errors, they're merely warnings:
Quote:
inux:/home/wampire/programlama/c/tcp-ip # gcc gopack.c -o gopack /usr/lib/libnet.a -lncurses -lstring
gopack.c: In function ‘main’:
gopack.c:79: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness
gopack.c:84: warning: pointer targets in passing argument 2 of ‘libnet_name2addr4’ differ in signedness
<= TO UNDERSTAND THESE, YOU'D HAVE TO POST THE RELEVANT PARTS OF THE SOURE
|
2. This is just a warning, too. To fix it, simply add a blank line after the last source line in
CODEgopack.c. Believe it or not, it's a legitimate warning (although it's very unlikely it would ever cause you a real problem):
Quote:
CODEgopack.c:202:2: warning: no newline at end of file
|
3. This is a real, bona fide error:
Quote:
linux:/home/wampire/programlama/c/tcp-ip # gcc gopack.c -o gopack /usr/lib/libnet.a -lncurses -lstring
...
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: cannot open output file gopack: Is a directory
collect2: ld returned 1 exit status
|
It looks like you've got a directory named "gopack" where the linker wants to create a new program file called "gopack". You can remove the directory, write the file someplace else, or rename the executable (e.g. "-o something_else").
'Hope that helps .. PSM
PS:
You seem to be logged in and compiling as "root" (the "#" prompt). Generally *not* a good practice...