Menu

linker error with winsock2

Alessio
2004-12-05
2012-09-26
  • Alessio

    Alessio - 2004-12-05

    I 'm doing the first step with socket programming. I wrote a few lines that using winsocket api function:

    include "winsock2.h"

    int main(int argc, char *argv[])
    {
    SOCKET m_socket = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP );
    }
    but in the linker step i recived the error above:
    [Linker error] undefined reference to 'socket@12'

    thanks, Alessio

     
    • Marek Januszewski

      http://www14.brinkster.com/aditsu/dev-cpp-faq.html#link

      and this is dev-c++ delphi devopers forum, not users

       
    • Wayne Keen

      Wayne Keen - 2004-12-05

      Alessio,

      Please take the time to look at a forum before posting to it. This is the post you posted directly over:

      http://sourceforge.net/forum/forum.php?thread_id=940084&forum_id=33286

      Wayne

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.