c++ - wxWidgets and NetBeans: Does not recognize files in "include" -
although finding <wx/cmdline.h>, netbeans complains error in <wx/wxprec.h> , <wx/socket.h>
build:
g++ `wx-config --cxxflags` -o dist/debug/gnu-linux-x86/client build/debug/gnu-linux-x86/main.o -lpthread `wx-config --cxxflags` project properties in netbeans
i need include these files create socket, i'm trying following:
wxprintf("creating socket...\n"); wxsocketclient socketclient; socketclient = new wxsocketbase(wxsocket_none); wxprintf("addressing...\n"); wxipv4address addr; addr.hostname("127.0.0.1"); addr.service(3000); if (!socketclient.isok()) { wxprintf("could not hear @ specified port !\n"); homecoming 1; } wxprintf("trying create connection...\n"); if (socketclient.connect(addr, false)) { wxprintf("success\n"); } else { wxprintf("error!\n"); homecoming 1; } my project console. not need gui.
your ide doesn't seem recognize backticks expansion mechanism, need run wx-config --cxxflags in terminal , re-create , paste output ide instead of using there straight (and perchance complain netbeans developers , hope add together back upwards useful functionality in future versions).
c++ netbeans wxwidgets
No comments:
Post a Comment