Pinyo's Programming and Software Notes

Sunday, June 04, 2006

Resource file linking problem in Visual C++
(June 4, 2006)

Today, I build a static libary that make use of another static library. If we do it directly, there will be a linking problem. This linking problem is something as follows:
fatal error LNK1241: resource file NVKernelMp.res (NVKernelMp) already specified
This problem can be fixed easily if we just do not produce additional resource file in the dependent static library. In Visual Studio 2003, we can go to 'Project Properties'. Then, go to Configuration Properties::Resources::General. In Resource File Name, we delete it and set Culture to 'Inherit from project default'.

2 Comments:

  • Hi Pinyo,
    This post saved me a lot of time. Thanks for sharing this tip. Keep up the good work.

    Vasu

    By Blogger Vasu, at 9:53 AM  

  • This comment has been removed by the author.

    By Blogger Vasu, at 9:53 AM  

Post a Comment

<< Home