build errors..? :/

BlitzMax Forums/BlitzMax Programming/build errors..? :/

Defoc8(Posted 2006) [#1]
perhaps ive missed something - but i synced + built the
modules.. but maxgui produce these errors..any ideas why
this is happening?


Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32gui/win32htmlview.cpp:41: error: redefinition of `struct IHTMLFramesCollection2'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/mshtml.h:461: error: previous definition of `struct IHTMLFramesCollection2'
C:/Program Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32gui/win32htmlview.cpp:62: error: redefinition of `struct IHTMLWindow2'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/mshtml.h:478: error: previous definition of `struct IHTMLWindow2'
Build Error: failed to compile C:/Program Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32gui/win32htmlview.cpp

redefinitions..hmmm..perhaps i need to configure the
compiler..strange this doesnt happen for the other
modules..


skidracer(Posted 2006) [#2]
It means you have a more uptodate version of MinGW than we are using which includes the above headers. Try commenting or removing lines 35..144 of the win32htmlview.cpp file.


Defoc8(Posted 2006) [#3]
ok..well that allowed the build to complete without
error..but now building apps results in linker errors..
heres the last part of the output..


Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32maxgui.release.win32.x86.a(win32hwnd.cpp.release.win32.x86.o)(.text$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_P9Win32HwndESt10_Select1stIS6_ESt4lessIS1_ESaIS6_EE5eraseERS3_+0x46):win32hwnd.cpp: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
C:/Program Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32maxgui.release.win32.x86.a(win32hwnd.cpp.release.win32.x86.o)(.text$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_P9Win32HwndESt10_Select1stIS6_ESt4lessIS1_ESaIS6_EE9_M_insertEPSt18_Rb_tree_node_baseSE_RKS6_+0x4e):win32hwnd.cpp: undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
C:/Program Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32maxgui.release.win32.x86.a(win32hwnd.cpp.release.win32.x86.o)(.text$_ZNSt8_Rb_treeIP6HWND__St4pairIKS1_P9Win32HwndESt10_Select1stIS6_ESt4lessIS1_ESaIS6_EE13insert_uniqueERKS6_+0x63):win32hwnd.cpp: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
Build Error: Failed to link C:/Projects/BlitzMax/IsoPac/pacbotv2.exe

sorry about the dumping of this text in here..

- are you sure this will work with an older version
of mingw? - guess ill have to remove bloodshed, and
reconfigure the env vars... i couldnt get the older
version to work last time..


Defoc8(Posted 2006) [#4]
sorry!
my mistake, it works fine with recommended compiler..
..may as well delete this post, unless you want to
leave here as an example of how to waste everyones time
;)