开发者

warning MSB8012: TargetPath(C:\wxWidgets-2.9.1\build\wx291_msw_vc10\..\..\lib\vc_lib\wxregex.lib) does not match

I get many warnings like these:

C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(C:\wxWidgets-2.9.1\build\wx291_msw_vc10.开发者_StackOverflow中文版...\lib\vc_lib\wxregex.lib) does not match the Linker's OutputFile property value (C:\wxWidgets-2.9.1\lib\vc_lib\wxregexud.lib).This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).

How i solve this problem


I've solved this problem by selecting Properties for each failing project in the solution and then replacing Configuration Properties -> General -> Target Name to the name from Configuration Properties -> Librarian (Linker) -> General -> Output file field. I believe reverse method should work too by setting latter to <inherit from parent or project defaults> though I don't recommend it because all configurations will produce the same output.

For example:
Librarian -> General -> Output file = ..\..\lib\vc_lib\wxmsw29u_core.lib
General -> Target Name = wxmsw29u_core


The u and d in wxregexud.lib indicate Unicode build and Debug build. wxregex.lib is a non-Unicode non-debug built lib.

C:\wxWidgets-2.9.1\lib\vc_lib\wxregexud.lib is the normal place where libs are. For some reason your target path is incorrect.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜