VS.NET Stand alone .exe problem - msvcr71.dll error

S

Sara Shoemaker

I am having problems creating a stand-alone Windows app.

I am using a .vcproj file that was translated from a Qt project file using
the Qt
plug-in. My problem is in getting it statically linked to the Windows
libraries.

After Googling extensively and getting .NET to generate a sample project I
have made the following changes to my project property pages:

Configuration Properties: General: Use of MFC - "Use MFC in a Static
Library"
C/C++: Code Generation: Runtime Library: - "Multi-threaded(/MT)"
Linker: Input: Ignore Specific Library: - "libcmt.lib"

My project compiles and links fine, but when I try to run it on a non-.NET
machine, it complains that it can't find msvcr71.dll. I have built clean
and thrown away all extra files between builds.

Any help would be greatly appreciated. Thanks for your time.
-Sara
 
W

Will Dean

Sara Shoemaker said:
My project compiles and links fine, but when I try to run it on a non-.NET
machine, it complains that it can't find msvcr71.dll. I have built clean
and thrown away all extra files between builds.

Are you linking it against any libraries that might themselves reference the
run-time DLL?

The way to diagnose these problems to use the Depends program, which comes
with Visual Studio (or can be optained from http://www.dependencywalker.com/

That will tell you more about what's going on.

I'm not convinced about your library ignore line, either, though I don't
think that's what's causing this problem.

Will
 
S

Sara Shoemaker

Turns out that the qt libraries were referencing the runtime DLL, thanks for
the encouragement to look in that area.
When I fixed that I removed the "ignore" line, since those DLL refs were
gone.

-Sara
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top