When compiling 22 library projects, wxwidget produces

Build: 20 succeeded, 2 failed, 0 up-to-date, 0 skipped

How to fix it? (Compilation type: Realis; development environment: Visual Studio 2010, C ++.)

Supplemented.

Here is the last thing Visual Studio 2010 gives out.

22>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(C:\Program Files\wxWidgets-2.9.2\build\wx291_msw_vc10\..\..\lib\vc_lib\wxregex.lib) does not match the Library's OutputFile property value (C:\Program Files\wxWidgets-2.9.2\lib\vc_lib\wxregexu.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 %(Lib.OutputFile).

22>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(wxregex) does not match the Library's OutputFile property value (wxregexu). 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 %(Lib.OutputFile).

22> wx_vc10_wxregex.vcxproj -> C:\Program Files\wxWidgets-2.9.2\build\wx291_msw_vc10\..\..\lib\vc_lib\wxregex.lib

========== Rebuild All: 20 succeeded, 2 failed, 0 skipped ==========

  • Find these two projects with errors, see the errors and try to fix it? or copy the text of the error. If this is the only message, then try to make a complete rebuild (which is of type Rebuild All) - KoVadim
  • Rebuild solution did not help. - Burunduk
  • apparently, the snag in the library of regular expressions. Somewhere there is something wrong with "Unicode" (it seems that the program itself is not in Unicode and wants a non-unicode version of the library, and the studio is trying to link with Unicode, but it may be the opposite). - KoVadim

1 answer 1

You have mismatch of used libraries ( wxregexu.lib , wxregexu.lib ) , presumably for Unicode and ANSI versions of libraries, respectively.

In this case, you can either do something in the spirit of #define WX_UNICODE in the project settings, or manually indicate which version of the library to use.