Author Topic: MS Visual C++ Static Compiler, Embedded Manifest  (Read 8341 times)

Thomas.Morland

  • Guest
MS Visual C++ Static Compiler, Embedded Manifest
« on: September 07, 2007, 11:56:43 pm »
Hi All,

I'm having trouble with my compiler settings and could use some help.  My coding team needs to compile C++ code using the MS Visual C++ 2005 compiler from CodeBlocks with the following settings:

1)  Static compiling
2)  NOT debug
3)  ***Most important*** Need to embed manifest file in the binary, not create external manifest file.

So far we have been with what would seem like static, non debug settings, but the resulting .dll files are smaller than we would expect, and we're totally at a loss to figure out how to embed the manifest.

Can anybody help?

Sincerely,

Thomas

Offline rjmyst3

  • Multiple posting newcomer
  • *
  • Posts: 117
    • wxFormBuilder
Re: MS Visual C++ Static Compiler, Embedded Manifest
« Reply #1 on: September 08, 2007, 01:25:06 am »
mt.exe is the tool used to embed the manifest, you should be able to add it as a post-build step or something.
It is available in the windows SDK.

More info here:
http://msdn2.microsoft.com/en-us/library/aa375649.aspx

Make sure you scroll down to the community content, there is a lot of help there.

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: MS Visual C++ Static Compiler, Embedded Manifest
« Reply #2 on: September 08, 2007, 04:18:24 pm »
If you don't want to use external tools:
It should be as easy as adding
Code
1 24 resource.manifest
to your resource.rc.
So your resource.manifest file will be included into your executable.