[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pan-devel] Pan 0.90 on MingW
From: |
Gisle Vanem |
Subject: |
Re: [Pan-devel] Pan 0.90 on MingW |
Date: |
Wed, 05 Apr 2006 15:31:55 +0200 |
"Gisle Vanem" <address@hidden> wrote:
g:/Mingw32/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_function.h: In member
function `bool std::less<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = pan::StringView]':
I figured out this error; adding -DHAVE_EXT_HASH_MAP to CFLAGS fixed that.
I only have one simple patch:
--- gui/url.cc.orig Sun Apr 02 16:55:05 2006
+++ gui/url.cc Wed Apr 05 15:04:58 2006
@@ -18,16 +18,17 @@
*/
#include <config.h>
+#include <glib.h>
#include <string>
#ifdef HAVE_GNOME
#include <libgnome/gnome-url.h>
#elif defined(G_OS_WIN32)
#include <windows.h>
+#include <shellapi.h>
#else
#include <pan/general/debug.h>
#include <pan/general/string-view.h>
#endif
-#include <glib.h>
#include <pan/general/log.h>
#include <pan/general/i18n.h>
#include "url.h"
--------------------
Because:
G_OS_WIN32 is set by Glib (glibconfig.h).
and
compiling with WIN32_LEAN_AND_MEAN speeds up the process a lot.
But that leaves out <shellapi.h>. So include it after <windows.h>.
--gv