August 10th, 2002, 10:41 PM
need help on c++
i need to do some c++ programming on a linux machine.. is there any difference from doing it on a windows machine? where can I find online documentation of the libraries used, i need to read up on how to use the socket.h
thanks in advance
August 10th, 2002, 11:25 PM
on Windows you've to use WinSock and a socket is NOT a file as it is on Unix... you've to have extra code to cater for Winsock (something like WSAstartup() i think...)
as for online docs, i've been looking too cos i'm also learning socket programming... do a search at google for 'beej's guide to network programming'... that's a good one but in C (not C++)... if you find any good ones let me know too ok?
<edit> i found the link to the guide i mentioned above -> www.ecst.csuchico.edu/~beej/guide/net/ </edit>
August 22nd, 2002, 01:44 PM
August 27th, 2002, 02:04 AM
I would use g++ for that, gcc is for C code...
August 27th, 2002, 06:36 AM
August 27th, 2002, 08:42 AM
Re: Different compiler.
All gcc is, is a front end that calls the proper compiler for the job, whether that be cc, g++, java, etc.
September 16th, 2002, 11:24 PM
GCC is now GNU Compiler Collection...or something of that sort. It used to be GNU C Compiler, but now it comes with a whole list of compilers.
Anywho, if you use cygwin and the gcc for windows then you will have portability and not even have to worry about WinSock and the like. With cygwin you can use socket.h. Wonderful heh?