« Return to Thread: Fwd: How to link with winsock

Fwd: How to link with winsock

by abd_bela :: Rate this Message:

| View in Thread



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


Please direct this to the mingw-users@... 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@...> 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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@...?subject=unsubscribe

 « Return to Thread: Fwd: How to link with winsock