Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: Thomas.Morland 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
-
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.
-
If you don't want to use external tools:
It should be as easy as adding
to your resource.rc.
So your resource.manifest file will be included into your executable.