View previous topic :: View next topic |
Author |
Message |
Rommie
Joined: 23 Aug 2007 Posts: 6
|
Posted: Thu Aug 23, 2007 12:53 pm Post subject: Problem linking ws2_32.lib |
|
|
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 |
|
|
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Thu Aug 23, 2007 1:52 pm Post subject: |
|
|
Use the one provided by DMC or DMD (can't remember right now). Microsoft LIBs are not compatible with OptLink. |
|
Back to top |
|
|
Rommie
Joined: 23 Aug 2007 Posts: 6
|
Posted: Thu Aug 23, 2007 3:26 pm Post subject: |
|
|
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 |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Thu Aug 23, 2007 7:08 pm Post subject: |
|
|
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 |
|
|
|