Building the Testsuite with static release

Please post support and help requests here.
Posts: 4
Joined: 23 Oct 2007, 17:45

Building the Testsuite with static release

Postby zMichi » 30 Oct 2007, 16:06


I'm using Poco under Windows MVC and I have to say, that I'm very satisfied! I have just one problem! If I build static libs in release mode of Poco, the Testsuite is not able to link.

The following error occures when I'm building the testsuite of the Net-Solution with relase_static.
LINK : fatal error LNK1104: cannot open file 'PocoFoundationmtd.lib'

This library the linker complains is a debug library. I cannot find any setting that says that this library is included! I changed nothing in the delivery of poco. The static debug version works without a problem

Has anyone a hint for me?

Thank you in advance!

Posts: 1268
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Building the Testsuite with static release

Postby guenter » 10 Nov 2007, 18:35

On Windows, POCO uses the

Code: Select all

#pragma comment(lib, "PocoNetmtd.lib")

pragma of VC++ to specify the names of required libraries. For the Foundation library, the pragma is in Foundation.h. For the Net library, the pragma is in Net.h.

Have you built the static release version (PocoFoundationmt.lib) of POCO Foundation (check the $POCO_BASE/lib directory)?

Return to “Support”

Who is online

Users browsing this forum: No registered users and 2 guests