Latest mod update fails

BlitzMax Forums/BlitzMax Programming/Latest mod update fails

Nigel Brown(Posted 2006) [#1]
Just did a syncmods and lots of updates were applied. Then tried to compile them by selecting 'rebuild all modules' and got the error:

Building Modules
Compiling:win32htmlview.cpp
C:/Program Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32gui/win32htmlview.cpp:41: error: redefinition of `struct IHTMLFramesCollection2'
c:/MinGW/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:/MinGW/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
Process complete


Grisu(Posted 2006) [#2]
MinGW 3.4.2 might be the wrong version.

Only MinGW 3.1.0 works!


Yan(Posted 2006) [#3]
Also...

You don't need to rebuild modules after a syncmods!


skidracer(Posted 2006) [#4]
Hmm, I stupidly thought #ifndef would work with structs, Nigel if you want to fix your win32maxgui module so it compiles, in file win32maxgui.mod/win32gui/win32htmlview.cpp add /* to the beginning of the lines starting with #ifndef and */ to the end of the #endif lines (two of each in total).