Re: Gtk-ERROR **: Incompatible build!
- From: "John Zoidberg" <zohn joidberg gmail com>
- To: "Tor Lillqvist" <tml iki fi>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Gtk-ERROR **: Incompatible build!
- Date: Sun, 10 Jun 2007 20:32:49 +0200
Answering your question just solved my problem and I feel stupid for not
having tried to copy the whole contents of "Compiler" into "C++ compiler"...
^^'
The language was set to C++ by default, so instead of compiling with gcc, it
was compiling with g++ for which all the option lines of gcc were not set.
Creating a GTK+/C project worked and creating a GTK+/C++ project and then
copying the compiler options from "Compiler" into "C++ compiler" also works.
Only thing I still need to get working now is the gettext library, which is
driving me almost crazy.
I just can't get it to work correctly. "setenv" seems undefined in windows
and "putenv" or "setlocale" don't seem to change much...
Anyway, here's what I had after creating a default GTK+ project with the C++
code option selected:
In "project options->parameters":
Compiler:
-I"<INCLUDE>\gtk-2.0" -I"<LIB>\gtk-2.0\include" -I"<INCLUDE>\atk-1.0"
-I"<INCLUDE>\pango-1.0" -I"<INCLUDE>\cairo" -I"<INCLUDE>\glib-2.0"
-I"<INCLUDE>\glib-2.0\glib" -I"<LIB>\glib-2.0" -I"<LIB>\glib-2.0\include"
-mno-cygwin -mms-bitfields
C++ compiler: empty
Linker:
-limm32 -lshell32 -lole32 -luuid -lintl -lcairo.dll -lpangowin32-1.0.dll -
latk-1.0.dll -lgdk_pixbuf-2.0.dll -lgdk-win32-2.0.dll -lglib-2.0.dll -
lgmodule-2.0.dll -lgobject-2.0.dll -lgthread-2.0.dll -lgtk-win32-2.0.dll -
lpango-1.0.dll
Compile log:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Program Files/Fichiers
communs/GTK/2.0/INCLUDE" -I"C:/Program Files/Fichiers
communs/GTK/2.0/INCLUDE/GTK-2.0" -I"C:/Program Files/Fichiers
communs/GTK/2.0/INCLUDE/GLIB-2.0" -I"C:/Program Files/Fichiers
communs/GTK/2.0/INCLUDE/PANGO-1.0" -I"C:/Program Files/Fichiers
communs/GTK/2.0/INCLUDE/CAIRO" -I"C:/Program Files/Fichiers
communs/GTK/2.0/INCLUDE/ATK-1.0" -I"C:/Program Files/Fichiers
communs/GTK/2.0/INCLUDE/GTKGLEXT-1.0" -I"C:/Program Files/Fichiers
communs/GTK/2.0/LIB/GTK-2.0/INCLUDE" -I"C:/Program Files/Fichiers
communs/GTK/2.0/LIB/GLIB-2.0/INCLUDE" -I"C:/Program Files/Fichiers
communs/GTK/2.0/LIB/GTKGLEXT-1.0/INCLUDE" -I"C:/Program Files/Fichiers
communs/GTK/2.0/INCLUDE/LIBGLADE-2.0" -I"C:/Program Files/Fichiers
communs/GTK/2.0/INCLUDE/LIBXML2"
windres.exe -i Project1_private.rc --input-format=rc -o Project1_private.res
-O coff
g++.exe main.o Project1_private.res -o "Project1.exe" -L"C:/Program
Files/Fichiers communs/GTK/2.0/LIB" -mwindows -limm32 -lshell32 -lole32
-luuid -lintl -lcairo.dll -lpangowin32-1.0.dll -latk-1.0.dll -lgdk_pixbuf-
2.0.dll -lgdk-win32-2.0.dll -lglib-2.0.dll -lgmodule-2.0.dll -
lgobject-2.0.dll -lgthread-2.0.dll -lgtk-win32-2.0.dll -lpango-1.0.dll
Execution terminated
Compilation successful
On 6/10/07, Tor Lillqvist <tml iki fi> wrote:
John Zoidberg writes:
> On Windows, this probably means that you have compiled
> your code with gcc without the -mms-bitfields switch,
> When I go into project options, the "-mms-bitfields" switch is there.
Where, exactly? Does it get passed to gcc in the *compilation* phase?
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]