[Glade-users] Problem of linking gtk-demo images.c program



This is a multi-part message in MIME format.

------_=_NextPart_001_01C4F6B2.F733A6C5
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Regarding my question in previous email, I think the glib library file
should include g_fopen() function. In my project, I included
glib-2.0.lib, which came with installation of glib2.4.8, but I don't
know why the linkage complains that g_fopen() not resolved. I wonder if
anybody in the email list has seen the same problem or knew what was
wrong with it?
=20
Regards,
Fanzhe

________________________________

From: glade-users-admin lists ximian com
[mailto:glade-users-admin lists ximian com] On Behalf Of Cui, Fanzhe
Sent: Sunday, January 09, 2005 7:14 PM
To: glade-users lists ximian com
Subject: [Glade-users] Problem of linking gtk-demo images.c program


Hi,=20
=20
I am new to gtk+, and glade, and I had a problem trying to link the
images.c demo which comes with gtk-demo. If somebody can help me out, it
would be appreciated.
=20
I downloaded the latest windows port of glage with gdk+ from:
http://gladewin32.sourceforge.net/, and I was able to run the gtk-demo.
I was also able to compile and link some other glade2 demos with MS VC++
7.=20
=20
The problem was when I was trying to make a little more complicated
testing program by modifying images.c in C:\GTK\share\gtk-2.0\demo
directory, which is part of gtk-demo program.=20
=20
When I build the project by linking the program, I got:=20
Linking...
main.obj : error LNK2019: unresolved external symbol _g_fopen referenced
in function _load_file
.\/gtk-demo_images.exe : fatal error LNK1120: 1 unresolved externals

The problem is that the program calls g_fopen() function which is in the
in the library that I included. I searched the library and it should be
in one of glib library. I am not sure that the problem caused by using
windows port of the gtk+ pkg. Anybody has seen such problem or have any
idea about how to resolve this problem. Thank you!
=20
Best Regards,
Fanzhe Cui
Intel America's, Inc

------_=_NextPart_001_01C4F6B2.F733A6C5
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1480" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D286001501-10012005>Regarding my question in previous email,=20
</SPAN></FONT><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D286001501-10012005>I think the glib library file should include =
g_fopen()=20
function. In my project, I included glib-2.0.lib, which came with =
installation=20
of glib2.4.8, but I don't know&nbsp;why the linkage complains that=20
g_fopen()&nbsp;not resolved. I wonder if anybody in the email list has =
seen the=20
same problem or knew what was wrong with it?</SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D286001501-10012005></SPAN></FONT>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D286001501-10012005>Regards,</SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D286001501-10012005>Fanzhe</SPAN></FONT></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> =
glade-users-admin lists ximian com=20
[mailto:glade-users-admin lists ximian com] <B>On Behalf Of </B>Cui,=20
Fanzhe<BR><B>Sent:</B> Sunday, January 09, 2005 7:14 PM<BR><B>To:</B>=20
glade-users lists ximian com<BR><B>Subject:</B> [Glade-users] Problem of =
linking=20
gtk-demo images.c program<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=3D654555723-09012005><FONT face=3DArial>Hi, =
</FONT></SPAN></DIV>
<DIV><SPAN class=3D654555723-09012005><FONT =
face=3DArial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D654555723-09012005><FONT face=3DArial>I am new to =
gtk+, and=20
glade, and I had a problem trying to link the images.c demo which comes =
with=20
gtk-demo. If&nbsp;somebody can help me out, it would be=20
appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=3D654555723-09012005><FONT =
face=3DArial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D654555723-09012005><FONT face=3DArial>I downloaded =
the latest=20
windows port of glage with gdk+ from: </FONT></SPAN><SPAN=20
class=3D654555723-09012005><FONT face=3DArial size=3D2><A=20
href=3D"http://gladewin32.sourceforge.net/";>http://gladewin32.sourceforge=
.net/</A></FONT></SPAN><SPAN=20
class=3D654555723-09012005><FONT face=3DArial>, and I was able to run =
the gtk-demo.=20
I was also able to compile and link some other glade2 demos with MS VC++ =
7.=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D654555723-09012005><FONT =
face=3DArial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D654555723-09012005><FONT face=3DArial>The problem =
was&nbsp;when I=20
was trying to make a little more complicated testing program by =
modifying=20
images.c in C:\GTK\share\gtk-2.0\demo directory, which is part of =
gtk-demo=20
program. </FONT></SPAN></DIV>
<DIV><SPAN class=3D654555723-09012005><FONT =
face=3DArial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D654555723-09012005><FONT face=3DArial>When I build =
the project by=20
linking the program, I got: </FONT></SPAN></DIV>
<DIV>Linking...<BR>main.obj : error LNK2019: unresolved external symbol =
_g_fopen=20
referenced in function _load_file<BR>.\/gtk-demo_<SPAN=20
class=3D654555723-09012005>images</SPAN>.exe : fatal error LNK1120: 1 =
unresolved=20
externals<BR></DIV>
<DIV><FONT face=3DArial><SPAN class=3D654555723-09012005>The problem is =
that the=20
program calls g_fopen() function which is in the in the library that I =
included.=20
I searched the library and it should be in one of glib library. I am not =
sure=20
that the problem caused by&nbsp;using windows port of the gtk+ pkg. =
Anybody has=20
seen such problem or have any idea about how to resolve this problem. =
Thank=20
you!</SPAN></FONT></DIV>
<DIV><SPAN class=3D654555723-09012005><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Best Regards,<BR>Fanzhe =
Cui<BR>Intel=20
America's, Inc</FONT></DIV></BODY></HTML>

------_=_NextPart_001_01C4F6B2.F733A6C5--




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