|
From: Ruwei L. <rw...@ph...> - 2006-05-29 17:23:36
|
Hi, Arjen
Thanks for replying.
Actually, examples with DLL won't compile on my computer. I got the
following error messages when I tried to
make:
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
No configuration specified. Defaulting to x19d - Win32 Debug.
if not exist "./x01d/" mkdir "./x01d"
if not exist ".\x01d\Release/" mkdir ".\x01d\Release"
cl.exe /nologo /ML /W3 /GX /O2 /D "NDEBUG" /D "NOBRAINDEAD"
/D "WIN32" /
D "_CONSOLE" /Fp".\x01d\Release/x01d.pch" /D "__PLDLL_H__" /YX
/Fo".\x01d\Releas
e/" /c ..\..\..\..\tmp\x01c.c
x01c.c
c:\downloads\plplot-5.6.1_RC1\tmp\plplot.h(617) : warning C4005:
'API' : macro r
edefinition
c:\downloads\plplot-5.6.1_RC1\tmp\plplot.h(149) : see
previous definitio
n of 'API'
c:\downloads\plplot-5.6.1_RC1\tmp\plplot.h(1886) : error C2373:
'plhlsrgb' : red
efinition; different type modifiers
c:\downloads\plplot-5.6.1_RC1\tmp\plplot.h(1141) : see
declaration of 'p
lhlsrgb'
c:\downloads\plplot-5.6.1_RC1\tmp\plplot.h(1889) : error C2373:
'plrgbhls' : red
efinition; different type modifiers
c:\downloads\plplot-5.6.1_RC1\tmp\plplot.h(1315) : see
declaration of 'p
lrgbhls'
..\..\..\..\tmp\x01c.c(121) : warning C4013: 'plparseopts'
undefined; assuming e
xtern returning int
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
I'll send you the project source later.
Regards,
Ruwei
Arjen Markus wrote:
> Ruwei Liu wrote:
>
>> Hi, all
>>
>> I'm trying to use plplot library for a project. It works fine
>> with the static library , but it fails to
>> link when I using the dynamic library. I got the following error
>> message:
>>
>> ------ Build started: Project: Tplot, Configuration: Debug
>> Win32 ------
>>
>> Linking...
>> LINK : error LNK2020: unresolved token (0A0000B3)
>> plD_dispatch_init_null
>> LINK : error LNK2020: unresolved token (0A0000B4)
>> plD_dispatch_init_gif
>> LINK : error LNK2020: unresolved token (0A0000B5)
>> plD_dispatch_init_jpeg
>> LINK : error LNK2020: unresolved token (0A0000B6)
>> plD_dispatch_init_png
>> LINK : error LNK2020: unresolved token (0A0000B7)
>> plD_dispatch_init_ljii
>> LINK : error LNK2020: unresolved token (0A0000B8)
>> plD_dispatch_init_ljiip
>> LINK : error LNK2020: unresolved token (0A0000B9)
>> plD_dispatch_init_xfig
>> LINK : error LNK2020: unresolved token (0A0000BA)
>> plD_dispatch_init_psc
>> LINK : error LNK2020: unresolved token (0A0000BB)
>> plD_dispatch_init_psm
>> LINK : error LNK2020: unresolved token (0A0000BC)
>> plD_dispatch_init_plm
>> LINK : error LNK2020: unresolved token (0A0000BD)
>> plD_dispatch_init_win3
>> LINK : fatal error LNK1120: 11 unresolved externals
>>
>> Tplot - 12 error(s), 0 warning(s)
>>
>> I did put the "plplotd.lib", "plplotd.def", "plplotd.exp" and
>> "plplotd.dll" to the project directory, link
>> to "plplotd.lib", and also defined "__PLDLL_H__", is there anything
>> I'm still missing?
>
>
> Have you looked at the makefile for the examples with the DLL in
> sys\msdev\win32\dexamples?
> These compile and link allright, so I would suggest you mimick the
> compile and link options
> from these examples.
>
> If this does not work, can you send me the source code and the
> makefile/project file, so that I
> can try and reproduce this on my machine? (I maintain the win32 device
> and the MSVC
> build system)
>
> Regards,
>
> Arjen
|