#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    0
    Rep Power
    0

    need help on c++


    hello people,
    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
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Posts
    32
    Rep Power
    13
    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>
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    europe
    Posts
    287
    Rep Power
    14
    i don't know if that helps but i'd take a look at gcc online documentation
    http://gcc.gnu.org/onlinedocs/
    sure u'll find the header files in there.
    if u prefer using an ide try qt. there's a free version at www.trolltech.com.
    cheers, jens
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Redding
    Posts
    49
    Rep Power
    13

    Different compiler.


    I would use g++ for that, gcc is for C code...
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    europe
    Posts
    287
    Rep Power
    14
    g++ is part of gcc
  10. #6
  11. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792

    Re: Different compiler.


    Originally posted by Rdesign
    I would use g++ for that, gcc is for C code...
    All gcc is, is a front end that calls the proper compiler for the job, whether that be cc, g++, java, etc.
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    South Carolina
    Posts
    0
    Rep Power
    0

    Clarification


    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?

IMN logo majestic logo threadwatch logo seochat tools logo