Find the answer to your Linux question:
Results 1 to 5 of 5
I want to write (in C) and compile a simple , command line, server app (using sockets). The app is to be run on Linux. What would be my best ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    3

    compile a Unix sockets app, in Windows (VC++)

    I want to write (in C) and compile a simple , command line, server app (using sockets).
    The app is to be run on Linux.

    What would be my best route?
    I've never coded for Unix.

    Can i use VC++ on a windows PC to write and compile my Linux app?
    Is it possible?
    Is there any tips anyone can give me?

    (maybe this is the totally wrong route to take?)

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Hi,

    First read a guide to network programming:

    Beej's Guide to Network Programming

    Regards

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    3
    i know about programming , my question was if i can compile on windows, code to be run on unix

  4. #4
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Hi,

    The answer is no, you can't run a windows exe file on Unix.

    Regards

  5. #5
    Just Joined!
    Join Date
    Jul 2007
    Posts
    3


    my question, again, was if i can COMPILE ... a Unix executable on Windows... not run it on Windows...just compile it (to be run on a unix box)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...