Hi , i try building C::B with WX2.8 in Win Xp Pro with MinGW
and i get this build log it's in Attach file
this is the error i have got ?
Quoteerror: ISO C++ forbids declaration of `Custom1' with no type
any help ?
AmR EiSa
[attachment deleted by admin]
I've never faced that problem with GCC-3.4.5 or 4.1.1 in WinXP SP2. But surely I didn't try with wx 2.8.0. ;)
I only try ;)
What version of GCC? (gcc --version)
What version of wxWidgets 2.8.? (wx/version.h)
I am using 2.8.1.2 of wxWidgets.
What version of minGW __MINGW32_VERSION? (_mingw.h, __MINGW32_VERSION)
What version of minGW __W32API_VERSION? (w32api.h, __W32API_VERSION)
What version of Code::Blocks? (SVN number)
Tim S
gcc version 3.4.5 (mingw special)
wxWidgets 2.8.0
Added three ?
What version of minGW __MINGW32_VERSION? (_mingw.h, __MINGW32_VERSION)
What version of minGW __W32API_VERSION? (w32api.h, __W32API_VERSION)
What version of Code::Blocks? (SVN number)
Please turn on full command line logging and POST compiler line that causes the error.
I am trying wx2.8.0 to see if I can duplicate error, using current C::B svn and a standard minGW.
(I have normally been using a modified minGW and wx2.8 branch)
Here's my command line for you to compare with.
mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DTIXML_USE_STL -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DEXPORT_LIB -DEXPORT_EVENTS -IC:\wx\inno\wxWidgets-2.8\wxWidgets-2.8.0\include -IC:\wx\inno\wxWidgets-2.8\wxWidgets-2.8.0\lib\gcc_dll\mswu -IC:\wx\inno\wxWidgets-2.8\wxWidgets-2.8.0\contrib\include -Isdk\wxscintilla\include -Isdk\propgrid\include -Isdk -Isdk\scripting\include -Isdk\scripting\sqplus -Isdk\wxFlatNotebook\include -IC:\apps\MinGW_GCC_3.4.5_API_3_8\include -c C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp -o .objs\2.6\sdk\projectoptionsdlg.o
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp: In member function `void ProjectOptionsDlg::OnFileToggleMarkClick(wxCommandEvent&)':
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp:745: warning: comparison between signed and unsigned integer expressions
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp: In member function `void ProjectOptionsDlg::OnRemoveScript(wxCommandEvent&)':
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp:908: warning: comparison between signed and unsigned integer expressions
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp: In member function `void ProjectOptionsDlg::OnScriptMoveDown(wxSpinEvent&)':
C:\CodeProjects\CodeBlocksProjects\CodeBlocks\CB_SVN\codeblocks-head\codeblocks\src\sdk\projectoptionsdlg.cpp:938: warning: comparison between signed and unsigned integer expressions
Tim S
i setup my MinGW with MinGW-5.1.3 with candidate ,
binutils-2.17.50
gcc-core-3.4.5
gcc-g++-3.4.5
mingw-runtime-3.11
mingw32-make-3.81-1
w32api-3.8
and with wxPack v2.8.0.03 i think the ver in wxpack is what in wx download site but i del this i get wx 2.8.1.2 and now try to build it with Min GW and VC80
Can you build wxWidgets from source using your minGW setup?
If, yes and you still have issues compiling C::B against wxWidgets 2.8.0, Please turn on full command line logging and POST compiler line that causes the error. It works for me with a slightly older minGW installation.
Tim S
now i rebuild wx ver 2.8.1.2
i do it with 2.8.1.2 and same info but i will upload build log files soon :(
Sorry for that but I format my HD :(
AmR EiSa
Ummm, it looks like custom control generated by wxSmith :?
Haven't you accidentially open some resource before compiling ?
If yes, try to checkout fresh C::B sources and check if it will work :)
No i don't :(
But i will see that C::B in my pc take 200 M :shock: