User forums > Using Code::Blocks

C::B 13.12 & wxWidgets 3.0.2

(1/2) > >>

jvpic:
Hi all,

First excuse me for my poor english !
I can't compile wxWidgetsdefault  project.
Environment Windows 7 64bits
code::Blocks : codeblocks-13.12mingw-setup.exe install on c:\program files(x32)\devel\
wxWidgets 3.02 wxMSW-3.0.2_gcc471TDM_Dev.7z et wxWidgets-3.0.2_headers.7z extracted  on d:\dev\wxWidgets3.0.2\

Global compiler settings/serch directories/compiler : d:\dev\wxWidgets3.0.2\include
                                /linker : /compiler : d:\dev\wxWidgets3.0.2\lib
Project builds options/serach directories/compiler : d:\dev\wxWidgets3.0.2\include
                                          d:\dev\wxWidgets3.0.2\include\wx
                              /linker : d:\dev\wxWidgets3.0.2\lib\gcc471TDM_dll\mswud

Compile debug mode:
Build messages:
||=== Build: Debug in Adonis (compiler: GNU GCC Compiler) ===|
D:\Dev\wxWidgets3.0.2\include\wx\platform.h|183|fatal error: wx/setup.h: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Build log:
-------------- Clean: Debug in Adonis (compiler: GNU GCC Compiler)---------------

Cleaned "Adonis - Debug"

-------------- Build: Debug in Adonis (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -Wall -pipe -mthreads -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -g -D__WXDEBUG__ -ID:\Dev\wxWidgets-3.0.2\include -ID:\Dev\wxWidgets3.0.2\include\wx -ID:\Dev\wxWidgets-3.0.2\lib\gcc_dll\mswud -ID:\Dev\wxWidgets3.0.2\include -c D:\Calc\Adonis\LibGrid\Adonis\wx_pch.h -o wx_pch.h.gch\Debug_wx_pch_h_gch
In file included from D:\Dev\wxWidgets3.0.2\include/wx/defs.h:27:0,
                 from D:\Dev\wxWidgets3.0.2\include/wx/wxprec.h:12,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
D:\Dev\wxWidgets3.0.2\include/wx/platform.h:183:22: fatal error: wx/setup.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
====================================================================================================
Adding Project builds options/serach directories/compiler : d:\dev\wxWidgets3.0.2\include
                                                  d:\dev\wxWidgets3.0.2\include\wx
                                             d:\dev\wxWidgets3.0.2\lib\gcc471TDM_dll\mswud
Compiling again :
Build messages:
||=== Build: Debug in Adonis (compiler: GNU GCC Compiler) ===|
D:\Dev\wxWidgets3.0.2\include\wx\longlong.h|45|warning: #warning "Your compiler does not appear to support 64 bit " "integers, using emulation class instead.\n" "Please report your compiler version to " "wx-dev@lists.wxwidgets.org!" [-Wcpp]|
D:\Dev\wxWidgets3.0.2\include\wx\longlong.h|787|error: 'wxString' does not name a type|
...
D:\Dev\wxWidgets3.0.2\include\wx\longlong.h|858|error: 'wxASSERT' was not declared in this scope|
...
D:\Dev\wxWidgets3.0.2\include\wx\buffer.h|81|error: 'wxNO_LEN' was not declared in this scope|
...
D:\Dev\wxWidgets3.0.2\include\wx\buffer.h||In member function 'wxScopedCharTypeBuffer<T>::CharType* wxScopedCharTypeBuffer<T>::release() const':|
D:\Dev\wxWidgets3.0.2\include\wx\buffer.h|138|error: there are no arguments to 'wxT' that depend on a template parameter, so a declaration of 'wxT' must be available [-fpermissive]|
...
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 1 warning(s) (0 minute(s), 5 second(s)) ===|

Build log:
-------------- Clean: Debug in Adonis (compiler: GNU GCC Compiler)---------------

Cleaned "Adonis - Debug"

-------------- Build: Debug in Adonis (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -Wall -pipe -mthreads -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -g -D__WXDEBUG__ -ID:\Dev\wxWidgets-3.0.2\include -ID:\Dev\wxWidgets3.0.2\include\wx -ID:\Dev\wxWidgets3.0.2\lib\gcc471TDM_dll\mswud -ID:\Dev\wxWidgets-3.0.2\lib\gcc_dll\mswud -ID:\Dev\wxWidgets3.0.2\include -c D:\Calc\Adonis\LibGrid\Adonis\wx_pch.h -o wx_pch.h.gch\Debug_wx_pch_h_gch
In file included from D:\Dev\wxWidgets3.0.2\include\wx/time.h:13:0,
                 from D:\Dev\wxWidgets3.0.2\include/wx/wxcrtbase.h:38,
                 from D:\Dev\wxWidgets3.0.2\include\wx/string.h:45,
                 from D:\Dev\wxWidgets3.0.2\include/wx/chartype.h:105,
                 from D:\Dev\wxWidgets3.0.2\include/wx/debug.h:19,
                 from D:\Dev\wxWidgets3.0.2\include/wx/defs.h:695,
                 from D:\Dev\wxWidgets3.0.2\include/wx/wxprec.h:12,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
D:\Dev\wxWidgets3.0.2\include/wx/longlong.h:45:10: warning: #warning "Your compiler does not appear to support 64 bit " "integers, using emulation class instead.\n" "Please report your compiler version to " "wx-dev@lists.wxwidgets.org!" [-Wcpp]
In file included from D:\Dev\wxWidgets3.0.2\include\wx/time.h:13:0,
                 from D:\Dev\wxWidgets3.0.2\include/wx/wxcrtbase.h:38,
                 from D:\Dev\wxWidgets3.0.2\include\wx/string.h:45,
                 from D:\Dev\wxWidgets3.0.2\include/wx/chartype.h:105,
                 from D:\Dev\wxWidgets3.0.2\include/wx/debug.h:19,
                 from D:\Dev\wxWidgets3.0.2\include/wx/defs.h:695,
                 from D:\Dev\wxWidgets3.0.2\include/wx/wxprec.h:12,
                 from ./wx_pch.h:14,
                 from <command-line>:0:
D:\Dev\wxWidgets3.0.2\include/wx/longlong.h:787:5: error: 'wxString' does not name a type
D:\Dev\wxWidgets3.0.2\include/wx/longlong.h:797:5: error: 'wxString' does not name a type
D:\Dev\wxWidgets3.0.2\include/wx/longlong.h: In member function 'long int wxLongLongWx::ToLong() const':
D:\Dev\wxWidgets3.0.2\include/wx/longlong.h:690:76: error: 'wxT' was not declared in this scope
D:\Dev\wxWidgets3.0.2\include/wx/longlong.h:690:78: error: 'wxASSERT_MSG' was not declared in this scope
...
D:\Dev\wxWidgets3.0.2\include/wx/unichar.h:45:5: error: 'value_type' does not name a type
Process terminated with status 1 (0 minute(s), 5 second(s))
50 error(s), 1 warning(s) (0 minute(s), 5 second(s))
 
 
 Many thanks for your help !
 
 jvpic
                                          

stahta01:
I am guessing you used the CB ScriptedWizard to build the CB wxWidgets project.
If false, please state that.

You also downloaded the wxWidgets prebuilt development files.

I believe the CB Wizard needs fixed for those choices to work.

I will see if I can fix the CB Wizard for those choices.

Tim S.
   

ollydbg:
I see a folder named "mswud", maybe, you need "mswu" instead.

Alpha:

--- Quote from: jvpic on October 16, 2014, 04:40:32 pm ---wxWidgets 3.02 wxMSW-3.0.2_gcc471TDM_Dev.7z et wxWidgets-3.0.2_headers.7z extracted  on d:\dev\wxWidgets3.0.2\

--- End quote ---
It needs to be built... Edit: Redacted.  I saw the line

--- Quote from: jvpic on October 16, 2014, 04:40:32 pm ---D:\Dev\wxWidgets3.0.2\include\wx\platform.h|183|fatal error: wx/setup.h: No such file or directory|

--- End quote ---
which was all too familiar to me, and jumped to conclusions.

stahta01:

--- Quote from: Alpha on October 17, 2014, 01:50:47 am ---
--- Quote from: jvpic on October 16, 2014, 04:40:32 pm ---wxWidgets 3.02 wxMSW-3.0.2_gcc471TDM_Dev.7z et wxWidgets-3.0.2_headers.7z extracted  on d:\dev\wxWidgets3.0.2\

--- End quote ---
It needs to be built...

--- End quote ---

Not really; the wizard created project needs edited.

Tim S.

Navigation

[0] Message Index

[#] Next page

Go to full version