[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: libapr-1.dll is not a valid windows image

From: Tyler Roscoe <tyler_at_cryptio.net>
Date: Thu, 14 May 2009 13:55:16 -0700

On Thu, May 14, 2009 at 01:39:32PM -0700, webpost_at_tigris.org wrote:
> I'm trying to build Subversion using Microsoft Visual Studio 2008. When I try to use the libapr-1.dll that I built, Windows pops up an error saying that the dll "is not a valid windows image." The other dlls and exes seem to be valid. I'm using a Visual Studio sln file that was created by Visual Studio when I opened the from the apr.dsw file that came with the Subversion source zip file. My source is version 1.5.5.

I know nothing about building Subversion but you can't link against a
.dll. You must link against the import library (usually called .lib;
note however that for extra confusion, static libraries also have the
.lib suffix). Maybe pointing your linker to the .lib instead of the .dll
will fix your problem.

tyler
Received on 2009-05-14 22:56:06 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.