Mkb wrote: > #include <socket> > int main() { exit(0); }; > > gcc -o t.o -c t.c > gives > t.c:1:18: socket: No such file or directory. Not > being a C programmer, I'm not sure how I'd get the > compiler to include this header. Any ideas? > > The socket.h files are located here: > /usr/conf/sys/socket.h > /usr/include/sys/socket.h > > And BTW, gcc -v gives the following: > > Reading specs from > /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/specs > Configured with: ./configure : (reconfigured) > ./configure : (reconfigured) ./configure : > (reconfigured) ./configure : (reconfigured) > ./configure : (reconfigured) ./configure : > (reconfigured) ./configure : (reconfigured) > ./configure : (reconfigured) ./configure : > (reconfigured) ./configure : (reconfigured) > ./configure > Thread model: posix > gcc version 3.2 > > thanks > > mohammed >
I get this here: 2:27pm {29} pcp02404936pcs:/home/webdragon>$ gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit Thread model: posix gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) That whole (reconfigured) thing looks very bizarre and may indicate something being wrong with your gcc. I don't know enough about it to say what might be the case however.