Thread: I feel like a n00b again, but...

  1. #1

    I feel like a n00b again, but...

    Ok. I have just recently switched back to C/C++ from JAVA, since XP was installed on the Windows box that i used to have, and i wasn't allowed to install any C++ stuff... But now i have a linuxbox and i am having to start all over again. Essentintially. I haven't had time to locate my old C/C++ books to look my questions up in, but for now i have a really basic question that that probably won't answer:

    [EDIT] Ignore this question, i found g++ [/EDIT]
    Does linux gcc have both C and C++ libraries? How do i tell it to use one/the other of these?

    Why does my IRC client not compile under (what i think is) C++? It complains about the last parameter of the accept( ) not being able to cast from an int* to a socklen_t* or something. Any help would be greatly appreciated!

    ~Inquirer

    [EDIT] Here is the error from g++
    server.c: In function `int main ()':
    server.c:71: cannot convert `int *' to `socklen_t *' for argument `3'
    to `accept (int, sockaddr *, socklen_t *)'
    [/EDIT]
    Last edited by Inquirer; 04-05-2003 at 02:26 PM.
    Compilers:
    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    Others:
    MinGW on XP

  2. #2

    Unhappy

    Hehe... i should've came up with that myself, but thanks for jogging my memory. I've been thinking JAVA, and still am. Could you recommend any good tutorials that I can use to recover the basics? I'm going to be reading the CProgramming ones soon, so anything basic that isn't covered there would be appreciated. I'll be renting Herbert Schildt's Ultimate Guide to C++ in a week or 2. Thanks again!

    ~Inquirer
    Compilers:
    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    Others:
    MinGW on XP

  3. #3
    Thanks! I'll be sure to make note of those.

    ~Inquirer
    Compilers:
    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    Others:
    MinGW on XP

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. n00b tackles another problem set, needs more help :\
    By rightbrainer in forum C Programming
    Replies: 30
    Last Post: 04-18-2009, 02:37 AM
  2. n00b doing a Socket operation on non-socket
    By Kinasz in forum Networking/Device Communication
    Replies: 2
    Last Post: 03-25-2004, 03:29 AM
  3. God, i feel like a n00b again. How do i do exponents?
    By Inquirer in forum C++ Programming
    Replies: 13
    Last Post: 09-01-2003, 08:41 PM
  4. Feel Guilty..
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 01-22-2003, 03:00 PM
  5. Getting started (n00b)
    By Raoul_Duke in forum Linux Programming
    Replies: 19
    Last Post: 12-09-2002, 01:12 AM