Hi everyone. I'm the classic noob to the GUI design area, but the design for my g/f's thesis has made it a must for me A.S.A.P. So... before I can go rampage over the tutorials, I need to put what appears to be a promising library into my trusted C::B
My development will be done over:
Windows XP
Code::Blocks 8.02
wxWidgets 2.8.9
I tried to follow every installation tutorial I could find, but it seems i'm a little tooo noob into this.
I just want to know how to do the entire thing.
I tried this >> http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef (http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef)
but I got the following error
||=== Tesis, Debug ===|
D:\CodeBlocks\wxWidgets\include\wx\platform.h|196|wx/setup.h: No such file or directory|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|103|#error "wxUSE_DYNLIB_CLASS must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|111|#error "wxUSE_EXCEPTIONS must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|119|#error "wxUSE_FILESYSTEM must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|127|#error "wxUSE_FS_ARCHIVE must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|140|#error "wxUSE_DYNAMIC_LOADER must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|148|#error "wxUSE_LOG must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|156|#error "wxUSE_LONGLONG must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|164|#error "wxUSE_MIMETYPE must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|180|#error "wxUSE_PRINTF_POS_PARAMS must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|188|#error "wxUSE_PROTOCOL must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|230|#error "wxUSE_REGEX must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|238|#error "wxUSE_STDPATHS must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|246|#error "wxUSE_XML must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|254|#error "wxUSE_SOCKETS must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|262|#error "wxUSE_STREAMS must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|270|#error "wxUSE_STOPWATCH must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|278|#error "wxUSE_TEXTBUFFER must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|286|#error "wxUSE_TEXTFILE must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|302|#error "wxUSE_URL must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|310|#error "wxUSE_VARIANT must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|330|#error "wxUSE_ABOUTDLG must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|338|#error "wxUSE_ACCEL must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|346|#error "wxUSE_ANIMATIONCTRL must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|354|#error "wxUSE_BITMAPCOMBOBOX must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|362|#error "wxUSE_BMPBUTTON must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|370|#error "wxUSE_BUTTON must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|378|#error "wxUSE_CALENDARCTRL must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|386|#error "wxUSE_CARET must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|394|#error "wxUSE_CHECKBOX must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|410|#error "wxUSE_CHOICE must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|418|#error "wxUSE_CHOICEBOOK must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|426|#error "wxUSE_CHOICEDLG must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|434|#error "wxUSE_CLIPBOARD must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|442|#error "wxUSE_COLLPANE must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|450|#error "wxUSE_COLOURDLG must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|458|#error "wxUSE_COLOURPICKERCTRL must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|466|#error "wxUSE_COMBOBOX must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|474|#error "wxUSE_COMBOCTRL must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|482|#error "wxUSE_DATAOBJ must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|490|#error "wxUSE_DATAVIEWCTRL must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|498|#error "wxUSE_DATEPICKCTRL must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|506|#error "wxUSE_DIRPICKERCTRL must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|514|#error "wxUSE_DISPLAY must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|522|#error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|530|#error "wxUSE_FILEDLG must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|538|#error "wxUSE_FILEPICKERCTRL must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|546|#error "wxUSE_FONTDLG must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|554|#error "wxUSE_FONTMAP must be defined."|
D:\CodeBlocks\wxWidgets\include\wx\chkconf.h|562|#error "wxUSE_FONTPICKERCTRL must be defined."|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
Any help will be appretiated
Ok... so.. I've been using the 4 files that CB created for me as a wxWidget project and all seems to be working fine... the thing is... I'm trying some tutorials and for some reason CB does not find the librarys for single files (as oposite from wx projects).
this tutorial example:
#include <wx/file.h>
int main(int argc, char **argv)
{
wxString str = wxT("You make me want to be a better man.\n");
wxFile file;
file.Create(wxT("quote"), true);
if (file.IsOpened())
wxPuts(wxT("the file is opened"));
file.Write(str);
file.Close();
if (!file.IsOpened())
wxPuts(wxT("the file is not opened"));
}
Produces this error msg:
D:\Documents and Settings\Manny\Escritorio\createfile.cpp|1|wx/file.h: No such file or directory|
D:\Documents and Settings\Manny\Escritorio\createfile.cpp||In function `int main(int, char**)':|
D:\Documents and Settings\Manny\Escritorio\createfile.cpp|6|error: `wxString' was not declared in this scope|
D:\Documents and Settings\Manny\Escritorio\createfile.cpp|6|error: expected `;' before "str"|
D:\Documents and Settings\Manny\Escritorio\createfile.cpp|8|error: `wxFile' was not declared in this scope|
D:\Documents and Settings\Manny\Escritorio\createfile.cpp|8|error: expected `;' before "file"|
D:\Documents and Settings\Manny\Escritorio\createfile.cpp|9|error: `file' was not declared in this scope|
D:\Documents and Settings\Manny\Escritorio\createfile.cpp|9|error: `wxT' was not declared in this scope|
D:\Documents and Settings\Manny\Escritorio\createfile.cpp|12|error: `wxPuts' was not declared in this scope|
D:\Documents and Settings\Manny\Escritorio\createfile.cpp|14|error: `str' was not declared in this scope|
D:\Documents and Settings\Manny\Escritorio\createfile.cpp|18|error: `wxPuts' was not declared in this scope|
||=== Build finished: 10 errors, 0 warnings ===|
Can I get some help on this one plz? :(
I am doing sorta that right now, but I still have issues
(I'm applying the properties to the new empty project)
Compiler Settings:
> Other Options:
>> -pipe
>> -mthreads
>> [[if (PLATFORM == PLATFORM_MSW && (GetCompilerFactory().GetCompilerVersionString(_T("gcc")) >= _T("4.0.0"))) print(_T("-Wno-attributes"));]]
> #defines:
>> __GNUWIN32__
>> __WXMSW__
>> WXUSINGDLL
>> wxUSE_UNICODE
Search Directories:
> Compiler:
>> D:\CodeBlocks\wxWidgets\include
>> D:\CodeBlocks\wxWidgets\contrib\include
> Resource Compiler
>> D:\CodeBlocks\wxWidgets\include
But I get this:
||=== Test, Debug ===|
obj\Debug\createfile.o:createfile.cpp:(.text+0xa6)||undefined reference to `__imp___ZN6wxFile6CreateEPKwbi'|
obj\Debug\createfile.o:createfile.cpp:(.text+0xcf)||undefined reference to `__imp__wxConvUTF8'|
obj\Debug\createfile.o:createfile.cpp:(.text+0xf9)||undefined reference to `__imp___ZN6wxFile5CloseEv'|
obj\Debug\createfile.o:createfile.cpp:(.text$_ZN6wxFileD1Ev[wxFile::~wxFile()]+0xd)||undefined reference to `__imp___ZN6wxFile5CloseEv'|
)]+0x4a)||undefined reference to `__imp___ZNK8wxString6mb_strERK8wxMBConv'|
)]+0xb5)||undefined reference to `__imp___ZN6wxFile5WriteEPKvj'|
)]+0x7)||undefined reference to `__imp___ZN12wxStringBase4nposE'|
)]+0x27)||undefined reference to `__imp___ZN12wxStringBase8InitWithEPKwjj'|
||=== Build finished: 8 errors, 0 warnings ===|
Jens @ I know I could probably get some help from their forum... but I thought that maybe someone in here with experience in C::B could be more useful than someone with knowledge of the librarys. Thanx for the help anyways :)