1

几个小时后,我终于能够编译 wxwidgets-2.8.12 库,如下所示:-

我将 .zip 解压缩到文件夹 D:\wxwidgets2812\wxwidgets-2.8.12

我进入 D:\MinGW\MSYS\1.0 运行批处理文件并执行以下操作:-

去了以下路径:-

 cd /d/{WXWIN}/build/msw 

并以下列方式编译库: -

 mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=1 UNICODE=0 BUILD=release

它构建/编译成功然后我在项目属性中添加->包含目录->D:\wxwidgets2812\wxwidgets-2.8.12\include,addidtional options-> wx-config --cxxflags,在链接器中我添加到库中->wx-config --libs

  Now when i run my code / project ,it gives me following errors:-

 The application failed with exit code -1073741515 (0xc0000135). 
 This could indicate that no required .dll was found in the PATH. 
 Please try to start the following command from the command shell (cmd.exe). 
 This may give some additional information. 

 C:\Users\Lenovo\Documents\NetBeansProjects\CppApplication_6\dist\Debug\MinGW_1-    
 Windows\cppapplication_6 

 RUN FAILED (exit value -1,073,741,515, total time: 22ms)

请帮我运行应用程序。谢谢

4

1 回答 1

1

“这可能表明在 PATH 中找不到所需的 .dll”

这表明您已经构建了应用程序以链接到包含 wxWidgets 库的 DLL。

你可以从这里走两条路:

  1. 更改您的应用程序构建以静态链接到库。如果您还没有这样做,您还必须构建 wxWidgets 以生成静态库。

  2. 将 wxWidgets DLL 复制到您的路径中。(或者将 DLL 文件夹添加到您的路径中作为快速修复以帮助您入门。)

选项 #2 现在可能更简单,因为您似乎已经构建了 wxWidgets 的 DLL 版本。因此,您需要找到在构建 wxWidgets 时创建的 wxWidgets DLL 并将其移动到您的路径中。

于 2012-04-20T12:54:38.350 回答