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



This is a multi-part message in MIME format.

------_=_NextPart_001_01C4F6A9.403E19A0
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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_01C4F6A9.403E19A0
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><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_01C4F6A9.403E19A0--




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