The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: Niblick on December 18, 2007, 07:20:51 am



Title: Compile Problem
Post by: Niblick on December 18, 2007, 07:20:51 am
Hi, I'm having some problems with compiling with MINGW. Help would be very much appreciated.

Code:
$ ./build.sh uqm       
  MKDEP    obj/debug/src/regex/regex.c.d
In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                    /include/windows.h:196,
                 from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                              /include/dirent.h:25,
                 from src/port.h:59,
                 from src/regex/regex.c:25:
C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/excpt.h:34:39                 : operator '>=' has no left operand
In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                    /include/msxml.h:271,
                 from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                               /include/urlmon.h:227,
                 from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                               /include/objbase.h:825,
                 from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                               /include/ole2.h:46,
                 from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                               /include/windows.h:259,
                 from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                               /include/dirent.h:25,
                 from src/port.h:59,
                 from src/regex/regex.c:25:
C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oaidl.h:440:1                  : pasting "/" and "/" does not give a valid preprocessing token
C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oaidl.h:455:1                  : pasting "/" and "/" does not give a valid preprocessing token
In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                  /include/objbase.h:826,
                 from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                               /include/ole2.h:46,
                 from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                               /include/windows.h:259,
                 from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../..                               /include/dirent.h:25,
                 from src/port.h:59,
                 from src/regex/regex.c:25:
C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/propidl.h:307                 :1: pasting "/" and "/" does not give a valid preprocessing token
make: *** [obj/debug/src/regex/regex.c.d] Error 1
make: *** Deleting file `obj/debug/src/regex/regex.c.d'

just so you know i'm a complete noob at this so if I'm making any stupidly obvious
mistakes please go easy on me  ;)


Title: Re: Compile Problem
Post by: meep-eep on December 18, 2007, 09:28:27 am
I for one haven't seen this before. It seems that there is a problem with your MinGW installation. Where did you get those Windows headers from?
A search on the web suggests that you're using the Windows Platform SDK header files with MinGW, which you shouldn't do; MinGW comes with its own versions of these include files which you should use.


Title: Re: Compile Problem
Post by: Niblick on December 18, 2007, 10:53:57 am
You were right. I promptly corrected the mistake and it worked fine.

Thanks for the help.