Alessandro Angeli
2010-01-22 00:21:19 UTC
I have a solution S with 2 projects:
- P[LIB] builds a static library and includes a resource R
- P[EXE] builds an EXE and explicitly depends on P[LIB]
Everything is compiled and linked correctly: the EXE runs
and can successfully call functions provided by the LIB.
However, it fails to find R embedded in the EXE.
R has been correctly compiled into a RES and dumpbin shows
that R is present in a .rsrc section in the LIB. But the
linker strips R from the LIB when producing the EXE.
The project settings are all left to their defaults.
I am using MSVC 2008 PRO SP1 on XP PRO SP3.
I have an 11 KiB (4 KiB zipped) proof of concept that shows
this behavior.
- P[LIB] builds a static library and includes a resource R
- P[EXE] builds an EXE and explicitly depends on P[LIB]
Everything is compiled and linked correctly: the EXE runs
and can successfully call functions provided by the LIB.
However, it fails to find R embedded in the EXE.
R has been correctly compiled into a RES and dumpbin shows
that R is present in a .rsrc section in the LIB. But the
linker strips R from the LIB when producing the EXE.
The project settings are all left to their defaults.
I am using MSVC 2008 PRO SP1 on XP PRO SP3.
I have an 11 KiB (4 KiB zipped) proof of concept that shows
this behavior.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm