• Advertisement
Sign in to follow this  

Why my program wont compile when I have Embed Manifest turned on

This topic is 1961 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a question regarding the compilation of a simple c++ program. I just got a new computer and downloaded Microsoft Visual c++. I then created a Console application to test if everything is dandy. I made a simple hello world application with the precompiled stdafx.h files included and received this error:

LINK: fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

it wouldn't let me even compile the program.... I looked into the web and found out one simple thing:

1. go into project | properties | Configuration Properties | Manifest Tool and then make sure Embed Manifest is turned to No instead of Yes.

I did this and it worked perfectly... so my question is this:

Why does my project compile now that this simple project property is changed? What does this do? Will I run into problems if I continue to leave it turned to No?

Please let me know if you need any more information on this matter.

Thanks in advance!

Wayne Prim

Share this post


Link to post
Share on other sites
Advertisement
A manifest is an XML resource that's used for Vista/Windows 7 Compatability (so your application can be signed as suitable for Vista/etc but it needs installers etc for that) . You don't need that so just leave embed manifest switched off.

More info about [url="http://msdn.microsoft.com/EN-US/library/ms235542(d=hv.2,v=vs.100).aspx"]manifests[/url].

Share this post


Link to post
Share on other sites
I've had a lot of problems with MSVC's manifests and virus scanners.

I recently solved a problem by adding an exclusion to my virus scanner for my programming directory. It was screwing with the files as they were being compiled -- specifically the manifest generation part for some reason...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement