Visual Studio 2010 build, missing system libs?

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
chaircrusher
Posts: 32
Joined: Tue, 2011-12-20, 23:24
Location: iowa city,ia

Visual Studio 2010 build, missing system libs?

#1 Post by chaircrusher »

I'm getting this error trying to build on Windows 7 with Visual Studio using a CMake generated project.

fatal_error LNK1104: cannot open file ws2_32.lib netapi32.lib wsock32.lib

I know what the problem is, sort of: There's a CMake variable CMAKE_C_STANDARD_LIBRARIES and those libraries need to be added to the list. I con do that at configure time, certainly but I'd think that the CMake build should 'just work.' Am I missing something?

J. Riesmeier
DCMTK Developer
Posts: 2506
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Visual Studio 2010 build, missing system libs?

#2 Post by J. Riesmeier »

Which version of the DCMTK are you using? There was a fix regarding the wrong use of quotation marks with this commit (2012-07-13): http://git.dcmtk.org/web?p=dcmtk.git;a= ... a3977cda15

Roadrunner
Posts: 56
Joined: Mon, 2010-06-14, 16:41

Re: Visual Studio 2010 build, missing system libs?

#3 Post by Roadrunner »

use the command line of the visual studio compiler and call cmake or cmake-gui into the opened windows.
It seems there are missing environment settings so the cmake doesn't found it.

btw: I'm using visual studio express 2010 and windows 7 64 bit but build all for 32 bit and everything is working. :-)

Frank

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest