Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 11:36

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: how to compile bf1942fp
PostPosted: 07 Jun 2011 02:04 

Joined: 24 Jan 2011 13:58
Posts: 27
HI Aluigi!
Could you tell me how to compile bf1942fp with gcc?
I see that there are two files - winerr.h and bf1942fp.c , but I do not what to do with them.


Top
 Profile  
 
 
 Post subject: Re: how to compile bf1942fp
PostPosted: 07 Jun 2011 23:00 

Joined: 16 Aug 2007 06:25
Posts: 367
http://aluigi.org/about.htm#compile


Top
 Profile  
 
 Post subject: Re: how to compile bf1942fp
PostPosted: 08 Jun 2011 02:04 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
gcc -o bf1942fp bf1942fp.c -lws2_32


Top
 Profile  
 
 Post subject: Re: how to compile bf1942fp
PostPosted: 18 Jun 2011 00:07 

Joined: 24 Jan 2011 13:58
Posts: 27
I get these errors.
Code:
tux@slitaz:~/bf1942fp$ gcc -o bf1942fp bf1942fp.c -lws2_32
/usr/bin/ld: cannot find -lws2_32
collect2: ld returned 1 exit status


Without -lws2_32 switch it compiles a binnary. What is that switch for?


Top
 Profile  
 
 Post subject: Re: how to compile bf1942fp
PostPosted: 18 Jun 2011 15:57 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
-lws2_32 is needed only for the windows "native" version of gcc like tdragon and mingw.

for any other version like linux and cygwin you must NOT use -lws2_32


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: