Subject: Problem with G_INLINE_FUNC using microsoft compiler
Date: Mon, 21 Mar 2005 13:58:47 +0100
Hi everyone!
I downloaded the last CVS snapshot to compile it under Windows.
My compiler is microsoft visual C++ 6.0.
When I try to make the dia lib sources (from makefile.msc in the /lib
directory), I get this error :
the last command that ran in the makefile and its output :
cl -G5 -GF -Ox -Zi -MD -W3 -nologo -I. -DHAVE_CONFIG_H -LD
-Felibdia.dll
autoroute.obj arrows.obj attributes.obj bezier_conn.obj
beziershape.obj bo
undingbox.obj color.obj connection.obj connectionpoint.obj
connpoint_line.ob
j diaarrowchooser.obj dialinechooser.obj diatransform.obj
dia_dirs.obj dia_
image.obj dia_svg.obj dia_xml.obj diaerror.obj diagramdata.obj
diagdkrender
er.obj diagtkfontsel.obj diainteractiverenderer.obj
dialibartrenderer.obj di
arenderer.obj diasvgrenderer.obj dynamic_obj.obj element.obj
filter.obj foc
us.obj font.obj geometry.obj group.obj intl.obj message.obj
neworth_conn.o
bj objchange.obj object.obj object_defaults.obj orth_conn.obj
paper.obj pa
rent.obj persistence.obj plug-ins.obj poly_conn.obj polyshape.obj
prop_attr
.obj prop_basic.obj prop_geomtypes.obj prop_inttypes.obj
prop_sdarray.obj p
rop_text.obj prop_widgets.obj propdesc.obj propdialogs.obj
properties.obj
proplist.obj propobject.obj propoffsets.obj propregistry.obj
ps-utf8.obj re
nder_pixmap.obj sheet.obj text.obj utils.obj widgets.obj
diamarshal.obj ..\
..\lib\gtk-win32-2.0.lib ..\..\lib\gdk-win32-2.0.lib
..\..\lib\pango-1.0.lib .
.\..\lib\libart_lgpl.lib ..\..\lib\libxslt.lib ..\..\lib\pango-1.0.lib
..\..\li
b\pangowin32-1.0.lib ..\..\lib\pangoft2-1.0.lib ..\..\lib\glib-2.0.lib
..\..\lib
\gmodule-2.0.lib ..\..\lib\gobject-2.0.lib ..\..\lib\libxml2.lib
..\..\lib\li
bz.lib ..\..\lib\gdk_pixbuf-2.0.lib ..\..\lib\intl.lib user32.lib
advapi32.li
b wsock32.lib /link /def:libdia.def
libdia.def : error LNK2001: unresolved external symbol
distance_point_point
libdia.def : error LNK2001: unresolved external symbol
distance_point_point_manh
attan
libdia.def : error LNK2001: unresolved external symbol point_add
libdia.def : error LNK2001: unresolved external symbol point_add_scaled
libdia.def : error LNK2001: unresolved external symbol point_copy
libdia.def : error LNK2001: unresolved external symbol point_dot
libdia.def : error LNK2001: unresolved external symbol point_get_perp
libdia.def : error LNK2001: unresolved external symbol point_len
libdia.def : error LNK2001: unresolved external symbol point_normalize
libdia.def : error LNK2001: unresolved external symbol point_scale
libdia.def : error LNK2001: unresolved external symbol point_sub
libdia.lib : fatal error LNK1120: 11 unresolved externals
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: 'cl' : return code '0x2'
It seems like all the G_INLINE_FUNC functions in the geometry.h files
are ignored, I searched for those symbols in all the .obj files, and
they are nowhere to be found, so it can't link/write these functions in
libdia.dll.
Is there any special parameter you know for visual C++ 6.0 compiler to
have the G_INLINE_FUNC functions work fine?
Are there missing things in the windows makefile.msc?
Should the G_INLINE_FUNC be avoided in visual C++ 6.0?
I really wanted to see the new things (autogap and such things), and the
only system with a correct build environment is windows (solaris not yet
ready as you may have seen in some of my previous mails)...
Thanks in advance for the answers!
Regards,
Clément