From: Arjen M. <arj...@wl...> - 2006-05-29 06:38:14
|
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 |