i found error?
Posted: Tue Aug 24, 2010 11:19 am
I build and run the application. I do not know then, but the application stopped running.
I think that the program can not create a directory in the directory Debug. In the Debug directory are files with extension *. o, but no executable file.
Please let me know. It's my mistake or a mistake of the program?
This is the text of the program:
---------- Build Started --------
/ Bin / sh-c '"make"-j 8-f "test_wsp.mk"'
---------- Building project: [myfirst - Debug ]----------
Warning: No config found to match: / usr / local / bin / wx-config - cxxflags - unicode = yes - debug = yes
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.
Warning: No config found to match: / usr / local / bin / wx-config - debug = yes - libs - unicode = yes
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.
make [1]: Entering directory `/ home / midisa / Projects / test / myfirst '
g-c "/ home / midisa / Projects / test / myfirst / gui.cpp"-g-D__WX__-D__WXGTK__-o. / Debug / gui.o "-I." "-I/usr/local/include/wx-2.8" "-I/usr/local/lib/wx/include/gtk2-unicode-release-2.8" "-I/usr/include/wx-2.8"
g-c "/ home / midisa / Projects / test / myfirst / main.cpp"-g-D__WX__-D__WXGTK__-o. / Debug / main.o "-I." "-I/usr/local/include/wx-2.8" "-I/usr/local/lib/wx/include/gtk2-unicode-release-2.8" "-I/usr/include/wx-2.8"
g-o. / Debug / myfirst. / Debug / gui.o. / Debug / main.o "-L." "-L/usr/local/lib"-Mwindows
. / Debug / gui.o: In function `MainFrameBase ':
/ Home / midisa / Projects / test / myfirst / gui.cpp: 12: undefined reference to `wxFrameNameStr '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 14: undefined reference to `wxDefaultSize '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 14: undefined reference to `wxDefaultSize '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 14: undefined reference to `wxDefaultSize '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 16: undefined reference to `wxMenuBar:: wxMenuBar (long) '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 19: undefined reference to `operator (wxString const &, wchar_t) '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 19: undefined reference to `operator (wxString const &, wchar_t const *) '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 19: undefined reference to `wxEmptyString '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 19: undefined reference to `wxMenuItem:: wxMenuItem (wxMenu *, int, wxString const &, wxString const &, wxItemKind, wxMenu *) '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 24: undefined reference to `wxFrameBase:: SetMenuBar (wxMenuBar *) '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 27: undefined reference to `wxBoxSizer:: wxBoxSizer (int) '
... deleted a lot of text ....
. / Debug / main.o: (. Rodata._ZTV7MainApp [vtable for MainApp] 0x158): undefined reference to `wxAppBase:: OnExceptionInMainLoop () '
. / Debug / main.o: (. Rodata._ZTV7MainApp [vtable for MainApp] 0x168): undefined reference to `wxAppBase:: GetTopWindow () const '
. / Debug / main.o: (. Rodata._ZTV7MainApp [vtable for MainApp] 0x170): undefined reference to `wxAppBase:: GetDisplayMode () const '
. / Debug / main.o: (. Rodata._ZTV7MainApp [vtable for MainApp] 0x188): undefined reference to `wxAppBase:: GetLayoutDirection () const '
. / Debug / main.o: (. Rodata._ZTV7MainApp [vtable for MainApp] 0x190): undefined reference to `wxAppBase:: SetActive (bool, wxWindow *) '
. / Debug / main.o: (. Rodata._ZTI7MainApp [typeinfo for MainApp] 0x10): undefined reference to `typeinfo for wxApp '
. / Debug / main.o: In function `~ MainApp ':
/ Home / midisa / Projects / test / myfirst / main.h: 27: undefined reference to `wxApp:: ~ wxApp () '
/ Home / midisa / Projects / test / myfirst / main.h: 27: undefined reference to `wxApp:: ~ wxApp () '
collect2: ld returned 1 exit status
make [1]: *** [Debug / myfirst] Error 1
make [1]: Leaving directory `/ home / midisa / Projects / test / myfirst '
make: *** [All] Error 2
---------- Build Ended ----------
0 errors, 0 warnings
I think that the program can not create a directory in the directory Debug. In the Debug directory are files with extension *. o, but no executable file.
Please let me know. It's my mistake or a mistake of the program?
This is the text of the program:
---------- Build Started --------
/ Bin / sh-c '"make"-j 8-f "test_wsp.mk"'
---------- Building project: [myfirst - Debug ]----------
Warning: No config found to match: / usr / local / bin / wx-config - cxxflags - unicode = yes - debug = yes
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.
Warning: No config found to match: / usr / local / bin / wx-config - debug = yes - libs - unicode = yes
in / usr / local / lib / wx / config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config - list to see all configs available in
the default prefix.
make [1]: Entering directory `/ home / midisa / Projects / test / myfirst '
g-c "/ home / midisa / Projects / test / myfirst / gui.cpp"-g-D__WX__-D__WXGTK__-o. / Debug / gui.o "-I." "-I/usr/local/include/wx-2.8" "-I/usr/local/lib/wx/include/gtk2-unicode-release-2.8" "-I/usr/include/wx-2.8"
g-c "/ home / midisa / Projects / test / myfirst / main.cpp"-g-D__WX__-D__WXGTK__-o. / Debug / main.o "-I." "-I/usr/local/include/wx-2.8" "-I/usr/local/lib/wx/include/gtk2-unicode-release-2.8" "-I/usr/include/wx-2.8"
g-o. / Debug / myfirst. / Debug / gui.o. / Debug / main.o "-L." "-L/usr/local/lib"-Mwindows
. / Debug / gui.o: In function `MainFrameBase ':
/ Home / midisa / Projects / test / myfirst / gui.cpp: 12: undefined reference to `wxFrameNameStr '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 14: undefined reference to `wxDefaultSize '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 14: undefined reference to `wxDefaultSize '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 14: undefined reference to `wxDefaultSize '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 16: undefined reference to `wxMenuBar:: wxMenuBar (long) '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 19: undefined reference to `operator (wxString const &, wchar_t) '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 19: undefined reference to `operator (wxString const &, wchar_t const *) '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 19: undefined reference to `wxEmptyString '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 19: undefined reference to `wxMenuItem:: wxMenuItem (wxMenu *, int, wxString const &, wxString const &, wxItemKind, wxMenu *) '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 24: undefined reference to `wxFrameBase:: SetMenuBar (wxMenuBar *) '
/ Home / midisa / Projects / test / myfirst / gui.cpp: 27: undefined reference to `wxBoxSizer:: wxBoxSizer (int) '
... deleted a lot of text ....
. / Debug / main.o: (. Rodata._ZTV7MainApp [vtable for MainApp] 0x158): undefined reference to `wxAppBase:: OnExceptionInMainLoop () '
. / Debug / main.o: (. Rodata._ZTV7MainApp [vtable for MainApp] 0x168): undefined reference to `wxAppBase:: GetTopWindow () const '
. / Debug / main.o: (. Rodata._ZTV7MainApp [vtable for MainApp] 0x170): undefined reference to `wxAppBase:: GetDisplayMode () const '
. / Debug / main.o: (. Rodata._ZTV7MainApp [vtable for MainApp] 0x188): undefined reference to `wxAppBase:: GetLayoutDirection () const '
. / Debug / main.o: (. Rodata._ZTV7MainApp [vtable for MainApp] 0x190): undefined reference to `wxAppBase:: SetActive (bool, wxWindow *) '
. / Debug / main.o: (. Rodata._ZTI7MainApp [typeinfo for MainApp] 0x10): undefined reference to `typeinfo for wxApp '
. / Debug / main.o: In function `~ MainApp ':
/ Home / midisa / Projects / test / myfirst / main.h: 27: undefined reference to `wxApp:: ~ wxApp () '
/ Home / midisa / Projects / test / myfirst / main.h: 27: undefined reference to `wxApp:: ~ wxApp () '
collect2: ld returned 1 exit status
make [1]: *** [Debug / myfirst] Error 1
make [1]: Leaving directory `/ home / midisa / Projects / test / myfirst '
make: *** [All] Error 2
---------- Build Ended ----------
0 errors, 0 warnings