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"));
}
,这就是我得到:
我不知道这是否是可读的,所以我贴的错误:
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
是的,我有它在我的面前,只是不知道做什么用吧:)尝试C:\ WXWIN \命令行代替的C:/ WXWIN/- 感谢名单寻求帮助。 +1。 –
摆脱这个可怜的家伙。做是一种很好的学习方式。 –