This is not a duplicate of VC ++ resources in a static library because it did not help :)
I have a static library with TWO strong> .rc files in this project. When I create my project using the Debug configuration, I get the following error (MSVS2008):
fatal error LNK1241: resource file res_yyy.res already specified
Please note that this only happens in the Debug and Release libraries, without any problems. The command line for the Resources page in the project configuration looks the same for each assembly:
/fo"...(Path here)/Debug/project_name.res" /fo"...(Path here)/Release/project_name.res"
and I can’t understand what the problem is. Any ideas?
UPDATE
I don’t know why this is happening, but when I turn on the option “Use code time code”, the problem disappears.
Can someone explain why this is happening? I feel that the MS compiler is doing something really strange here.
Thanks.
c ++ debugging build resources static-libraries
Yippie-ki-yay
source share