msvc link problems (wa Re: Dia-list Digest, Vol 30, Issue 23)



On 27.10.2006 23:40, Andreas Owen wrote:
Hello

I've solved my previous compiling problems but now i'm having trouble with the obj-files. i found something about multithreading option "/MT". It didn't have any affect. can someone please help.

The /mt option *has* the effect to use the correct c-runtime version: msvcrt.dll. It does not slove other missing libraries if that's what you are expecting. The cl command line shown by should look like this:

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

cl -G5 -Zi -MD -W3 -nologo -I. -DHAVE_CONFIG_H -LD -Felibdia.dll autoroute.obj arrows.obj attributes.obj bezier_conn.obj beziershape.obj boundingbox.obj color.obj connection.obj connectionpoint.obj connpoint_line.obj create.obj debug.obj diaarrowchooser.obj dialinechooser.obj diatransform.obj dia_dirs.obj dia_image.obj dia_svg.obj dia_xml.obj diaerror.obj diagramdata.obj diagdkrenderer.obj diagtkfontsel.obj diainteractiverenderer.obj dialibartrenderer.obj diarenderer.obj diasvgrenderer.obj dynamic_obj.obj element.obj filter.obj focus.obj font.obj geometry.obj group.obj intl.obj message.obj neworth_conn.obj objchange.obj object.obj object_defaults.obj orth_conn.obj paper.obj parent.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 prop_text.obj prop_widgets.obj propdesc.obj propdialogs.obj properties.obj proplist.obj propobject.obj propoffsets.obj propregistry.obj ps-utf8.obj render_pixmap.obj sheet.obj text.obj textline.obj utils.obj widgets.obj diamarshal.obj ..\../gtk+-2-8\gtk\gtk-wi32-2.0.lib ..\../gtk+-2-8\gdk\gdk-win32-2.0.lib ..\../gtk+-2-8\gdk-pixbuf\gdk_pixbuf-2.0.lib ..\../pango\pan go\pango-1.0.lib ..\../pango\pango\pango-1.0.lib ..\../pango\pango\pangowin32-1.0.lib ..\../pango\pango\pango-1.0.lib ..\../pango\pango\pangocairo-1.0.lib ..\..\glib\glib\glib-2.0.lib ..\..\glib\gmodule\gmodule-2.0.lib ..\..\glib\gobject\gobject-2.0.lib ..\../gnome-xml\libxml2.lib ..\../other/zlib123\zlib.lib ..\../ libart_lgpl\libart.lib ..\../gtk+-2-8\gdk-pixbuf\gdk_pixbuf-2.0.lib ..\../other/intl-tml\libintl-1.lib user32.lib advapi32.lib wsock32.lib /link /OPT:REF /def:libdia.def
   Creating library libdia.lib and object libdia.exp


MSCVC6 output:

Creating library libdia.lib and object libdia.exp
sheet.obj : error LNK2001: unresolved external symbol __imp__xmlFree
[...]
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\BIN\nmake.exe"' : return code '0x2'
Although you haven't shown it your command line is missing the libxml2 part. You either did not follow step 6. in Steffen's list [1] or the make.msc you are reading does not have something like:

LIBXML2_CFLAGS = $(LIBICONV_CFLAGS) -I $(LIBXML2)\include
LIBXML2_LIBS = $(LIBXML2)\libxml2.lib

BTW: are you aware of the first document [2] trying to describe the build configuration?


[1] http://dia-installer.sourceforge.net/dia_win32_compilation.html
[2] http://cvs.gnome.org/viewcvs/glib/README.win32?rev=1.43&view=markup

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert



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