Thread: Socket Programming using C on linux

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    21

    Question Socket Programming using C on linux

    hi all,
    i'm developing one client server chat application,for that i've got two files naming client.c and server.c under a folder called smallChat. My question is how to check this project is working in gcc,caz when i compile server.c it produces a.out and when i compile client.c it overwrites a.out. so help in running my project on gcc(linux)

    thanks in advance,
    Sri

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    43
    change the output file. So try something like this:

    gcc server.c -o server.out

    and then

    gcc client.c -o client.out

    Now you'll have separate names that don't overwrite each other.

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    27
    Check the automake, autoconf, etc (search autobook) utilities to make compilation/build process easy for you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux raw socket programming
    By cnb in forum Networking/Device Communication
    Replies: 17
    Last Post: 11-08-2010, 08:56 AM
  2. Specific ether type with raw socket under linux
    By sinacbe in forum Networking/Device Communication
    Replies: 1
    Last Post: 12-25-2009, 08:04 AM
  3. socket programming in c or c++ in linux...
    By pk20 in forum Linux Programming
    Replies: 5
    Last Post: 02-12-2009, 01:54 AM
  4. pthread and socket porting from Linux to Windows
    By mynickmynick in forum C Programming
    Replies: 2
    Last Post: 07-18-2008, 06:57 AM
  5. socket programming in linux
    By crazeinc in forum C Programming
    Replies: 1
    Last Post: 05-27-2005, 07:40 PM