Find the answer to your Linux question:
Results 1 to 3 of 3
Hello all, I am try to run in terminal the files located inside of the URL: web.sunybroome.edu/~mansfield_k/sockapps.htm mainly the Tic-Tac-Toe Application in C++. Click one and you find //Compile and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    1

    How can I run this command in terminal?


    Hello all,

    I am try to run in terminal the files located inside of the URL: web.sunybroome.edu/~mansfield_k/sockapps.htm

    mainly the Tic-Tac-Toe Application in C++. Click one and you find

    //Compile and link with wsock32.lib

    located at the top of source code. I know to run a C++ program by inputting g++ [name].cpp -o [name]

    but do need help in "//Compile and link with wsock32.lib"

    What exactly I type in the terminal to this? Thank you, and I apologize for my poor English.

  2. #2
    Just Joined!
    Join Date
    Sep 2012
    Location
    Nashville, TN
    Posts
    97
    I think the problem you will run into is that it uses the winsock library which is a windows only library. You might be able to find a port of winsock but I am not 100% sure if one exists.

  3. #3
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    630
    WinSock is a port of the "FreeBSD sockets" and all Unix and Linux flavors have the sockets library (in see include "socket.h").

Posting Permissions

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