Help - Missing manifest file

G

Guest

I'm working on migrating my VC++ 6.0 project to VS C++ 2005 and I'm bulding
the project using NMAKE from the command line. The code is not GUI, all
console utilities and services. I've managed to compile/build the code but
couple of places in my build tree I don't see manifest file along with DLL
and/or EXE. In most dirs. it (*.manifest) is there except for few and I
wonder what could be the reason for that. I'm not using /manifest switch any
where in my Makefiles. If I tries to open the exe file, that doesn't have
manifest file, in VS2005 Prof Ed. IDE, I get error "Cannot enumerate
resources in the executable.". Any help?
 
G

Guest

DLL/EXEs, where the *.manifest file were missing, were compiled with /MT
switch (static link). I changed it to /MD (dynamic link) and it created the
manifest file. I guess if you are linking statically you don't have any
runtime dependency and thus no manifest file.

RD
 
D

David Wilkinson

RD said:
DLL/EXEs, where the *.manifest file were missing, were compiled with /MT
switch (static link). I changed it to /MD (dynamic link) and it created the
manifest file. I guess if you are linking statically you don't have any
runtime dependency and thus no manifest file.

RD:

Even with static linking you still need a manifest to get XP/Vista
themes, and to turn of vitualization and other legacy features in Vista.
 
G

Guest

I'm writting applications for XP servers only. In that case I won't need
manifest file. Is that correct?

I'm now trying to build an existing DLL without manifestation using
/ALLOWISOLATION:NO and it gives me link error as follows:
LINK : fatal error LNK1295: '/ALLOWISOLATION' not compatible with '/DLL'
specification; link without '/ALLOWISOLATION'

Does this means you can't use link option /ALLOWISOLATION for a DLL. It is
only for the EXEs? I need to build DLL without .manifest file to resolve java
JNI DLL load error with java.exe. Any ideas.
 
B

Ben Voigt [C++ MVP]

RD said:
I'm writting applications for XP servers only. In that case I won't need
manifest file. Is that correct?

I'm now trying to build an existing DLL without manifestation using
/ALLOWISOLATION:NO and it gives me link error as follows:
LINK : fatal error LNK1295: '/ALLOWISOLATION' not compatible with '/DLL'
specification; link without '/ALLOWISOLATION'

Does this means you can't use link option /ALLOWISOLATION for a DLL. It is
only for the EXEs? I need to build DLL without .manifest file to resolve
java
JNI DLL load error with java.exe. Any ideas.

You need to provide "java.exe.manifest"
 

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