---------- Forwarded message ----------
From: Earnie Boyd <earnie@users.sourceforge.net>
Date: Tue, May 29, 2012 at 5:57 PM
Subject: Re: How to link with winsock
To: abdelkader belahcene <abelahcene@gmail.com>
Cc: mingw-users-owner@lists.sourceforge.net


Please direct this to the mingw-users@lists.sourceforge.net list.  We
do not respond to these questions on a 1on1 basis.

Earnie

On Tue, May 29, 2012 at 12:19 PM, abdelkader belahcene
<abelahcene@gmail.com> wrote:
> Hi,
> I am newer to windows environnement, I install mingw    to cretae executable
> for  application cretaed under linux. ( written in c).
> My application is just  a client/server program ( I replced the linux
> included by windows include, namely
>
> I used       #include <winsock2.h>
>
> The compilation is done without error, but when I tryed to link it I got
> errors :
> WSAGet.. , WSACleanup ....
> I tryed option -lwinsock,  -lwinsock2 ,    and other and other but  no one
> has been succeded!!!
>
>
> An,other problem:
> I created a graphical interface  with fltk  on linux, i compile it and lined
> it  without error,  but when I tryied to run it on windows I got errors
> like   cannot find  libstdc++-6.dll   and others a lot.
>
> I conclude that I need to compile  it with static library, in oder to use it
> on any windows machien!!!!!    Am I right ??
> how to do it
>
> thanks a lot.
>
> bets regards
>



--
Earnie
-- https://sites.google.com/site/earnieboyd