2013-05-16 23 views
0

我是一个总的C++新手。不能建立与wxWidgets的测试应用程序在Netbeans的

我想下净豆建立与WX-小工具窗口aplications。

到目前为止这么好。我已经安装了所有东西,配置好了,构建wx-widgets并将它附加到新项目中 - 在这里有一个好人帮助:Can't make wx-widget work with net-beans

现在,我尝试建立我的第一个应用程序:

#include <wx/string.h> 

int main(int argc, char **argv) 
{ 
    wxPuts(wxT("A wxWidgets console application")); 
} 

,这就是我得到:

enter image description here

我不知道这是否是可读的,所以我贴的错误:

g++ `C:\WXWIN\wx-config --cxxflags` -c -g -I../../../WXWIN/include `C:\WXWIN\wx-config --cxxflags` -MMD -MP -MF build/Debug/MinGW-Windows/main.o.d -o build/Debug/MinGW-Windows/main.o main.cpp 
/bin/sh.exe: C:WXWINwx-config: command not found 
/bin/sh.exe: C:WXWINwx-config: command not found 
In file included from ../../../WXWIN/include/wx/defs.h:21:0, 
       from ../../../WXWIN/include/wx/string.h:25, 
       from main.cpp:1: 
../../../WXWIN/include/wx/platform.h:196:22: fatal error: wx/setup.h: No such file or directory 
compilation terminated. 
make[2]: *** [build/Debug/MinGW-Windows/main.o] Error 1 
make[1]: *** [.build-conf] Error 2 
make: *** [.build-impl] Error 2 
make[2]: Leaving directory `/c/xampp/htdocs/WxWwigets_tutorial' 
make[1]: Leaving directory `/c/xampp/htdocs/WxWwigets_tutorial' 


BUILD FAILED (exit value 2, total time: 859ms) 

请注意,我已经按照顺序设置了链接器和编译器中的所有内容编辑:http://wiki.wxwidgets.org/Compiling_using_Netbeans

回答

1

的错误是正确的在你的面前:“命令未找到”。如果使用/bin/sh,则必须使用Unix样式路径,例如使用反斜杠代替DOS路径,代替C:/WXWIN/wx-config

我认真建议你熟悉你正在使用,而不是仅仅下列不理解他们的Wiki指令的环境,否则,你的问题就不会超过任何时间很快。

+0

是的,我有它在我的面前,只是不知道做什么用吧:)尝试C:\ WXWIN \命令行代替的C:/ WXWIN/- 感谢名单寻求帮助。 +1。 –

+0

摆脱这个可怜的家伙。做是一种很好的学习方式。 –

相关问题