FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem linking ws2_32.lib

 
Post new topic   Reply to topic     Forum Index -> General
View previous topic :: View next topic  
Author Message
Rommie



Joined: 23 Aug 2007
Posts: 6

PostPosted: Thu Aug 23, 2007 12:53 pm    Post subject: Problem linking ws2_32.lib Reply with quote

Hi all.

I'm getting the error message "Error 43: Not a Valid Library" whenever I try to link with ws2_32.lib. I've tried a couple of different versions of ws2_32.lib - all of them good (from different versions of Microsoft Visual Studio), and I get the same error every time.

Anyone else seen this? Anyone know the fix?


Last edited by Rommie on Sat Aug 25, 2007 1:44 am; edited 1 time in total
Back to top
View user's profile Send private message
Carlos



Joined: 19 Mar 2004
Posts: 396
Location: Canyon, TX

PostPosted: Thu Aug 23, 2007 1:52 pm    Post subject: Reply with quote

Use the one provided by DMC or DMD (can't remember right now). Microsoft LIBs are not compatible with OptLink.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Rommie



Joined: 23 Aug 2007
Posts: 6

PostPosted: Thu Aug 23, 2007 3:26 pm    Post subject: Reply with quote

Wow! That worked!

I don't actually know where the digitalmars version is either - but I just omitted the path (leaving only the filename ws2_32.lib) and dmd found it!

Cool. Thanks a million.
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Thu Aug 23, 2007 7:08 pm    Post subject: Reply with quote

Rommie wrote:
Wow! That worked!

I don't actually know where the digitalmars version is either - but I just omitted the path (leaving only the filename ws2_32.lib) and dmd found it!


You'll find ws2_32.lib in dmd/lib. There are more libraries in dm/lib (the DMC directory tree). DMD's configuration file (dmd/bin/sc.ini) is set up to search both paths for libraries by default.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> General All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group