Re: glib compile error



Hi,

It seems the problem comes from the glib.def file.
In some version of source, this file is not present and the compilation failed because it doesn't find it.
In other version, it don't understand 'G_GNUC_MALLOC' statement.

I really don't know how compile it. Is this file important? Can I compile without it?

2008/6/20 Fabian Jacquet <fabian jacquet gmail com>:
Hi all,

I'm trying to recompile glib and I have this error:
G:\libxml++\glib 2.12\glib\glib>nmake -f makefile.msc

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl -G5 -GF -MD -W3 -nologo -Ox -Zd -FImsvc_recommended_pragmas.h -I . -I
 .. -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG
-Zm400 -I ..\../gettext-0.10.40/intl -I ..\../libiconv-1.7\include -I ..\..\glib
\build\win32\dirent -LD -Felibglib-2.0-0.dll garray.obj          gasyncqueue.obj
                 gatomic.obj     gbacktrace.obj          gbase64.obj     gbookma
rkfile.obj       gcache.obj              gcompletion.obj                 gconver
t.obj            gdataset.obj            gdate.obj               gdir.obj
 gerror.obj              gfileutils.obj          ghash.obj               ghook.o
bj               gkeyfile.obj            gmappedfile.obj         giochannel.obj
         giowin32.obj            glist.obj               gmain.obj
 gmarkup.obj             gmem.obj                gmessages.obj           gnode.o
bj               goption.obj     gprimes.obj             gqsort.obj
 gqueue.obj              gpattern.obj    gprintf.obj     grand.obj
 grel.obj                gscanner.obj            gshell.obj              gslice.
obj      gslist.obj              gspawn-win32.obj        gstdio.obj      gstrfun
cs.obj           gstring.obj             gthread.obj             gthreadpool.obj
                 gtimer.obj              gtree.obj               gunibreak.obj
         gunicollate.obj                 gunidecomp.obj          guniprop.obj
         gutf8.obj               gutils.obj              gwin32.obj
 localcharset.obj glib.res ..\../libiconv-1.7\lib\iconv.lib ..\../gettext-0.10.4
0/intl\intl.lib  gnulib\gnulib.lib ..\..\glib\build\win32\dirent\dirent.lib user
32.lib advapi32.lib shell32.lib wsock32.lib ole32.lib ws2_32.lib  /link /machine
:ix86  /implib:glib-2.0.lib /def:glib.def
cl : Command line warning D9002 : ignoring unknown option '-G5'
cl : Command line warning D9002 : ignoring unknown option '-Zd'
glib.def(112) : fatal error LNK1118: syntax error in 'G_GNUC_MALLOC' statement
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.

Can somebody help me?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]