Re: building Tkpng package
- From: Mona <impm001@xxxxxxxxx>
- Date: Fri, 19 Mar 2010 04:27:02 -0700 (PDT)
On Mar 16, 1:41 pm, S...@xxxxxxxxxxxx wrote:
On Sun, 14 Mar 2010, Mona wrote:
Now, when I am building, I get the below link errors. Any ideas how I
can resolve these?
rm -f tkpng09.dll
link -dll -nologo -lz C:/sbx_tcl8.5.6/third_party/tcl/tcl8.5.6/win32/
lib
/tclstub85.lib C:/sbx_tcl8.5.6/third_party/tcl/tcl8.5.6/win32/lib/
tkstub8
5.lib -release -out:tkpng09.dll tkImgPNG.obj tkImgPNGInit.obj
LINK : warning LNK4044: unrecognized option '/lz'; ignored
tkstub85.lib(tkStubLib.obj) : MSIL .netmodule or module compiled with /
[snip]
Always read error messages (especially from a linker) like a love letter!
Note the referenced '/lz' as an unrecognized option ...
'-lz' in a *nix based system implies that libz.[so|a|o] exists somewhere
where your linker can find it. You will need to put the libz.dll or
whatever windows compiler will name it in a location that it can be found,
and point your linker to it an a manner consistent with object files ...
Cheers,
Rob.
Ok, so now I have the following link line, and am linking with
zlib1.lib.
link -dll -nologo /MANIFEST -lz C:/my_sandbox/third_party/tcl/
tcl8.5.6/../../
zlib-1.2.3/shared/lib/win32d/zlib1.lib C:/my_sandbox/third_party/tcl/
tcl8.5.6/
win32d/lib/tclstub85d.lib C:/my_sandbox/third_party/tcl/tcl8.5.6/
win32d/
lib/tkstub85d.lib -debug -out:tkpng09d.dll tkImgPNG.obj
tkImgPNGInit.
Obj
It finds the built package just fine if I I do "package require tkpng"
from the
installation directory, i.e. where tkpng09.dll is at. But, when
I try to use the package from some other folder location it complains:
“couldn't load library "C:/my_sandbox/third_party/tcl/tcl8.5.6/win32d/
lib/tkpng0.9/tkpng09d.dll": this library or a dependent library could
not be found in library path.”
Does anyone have an idea how I can resolve this?
Thanks,
Mona.
.
- Follow-Ups:
- Re: building Tkpng package
- From: Helmut Giese
- Re: building Tkpng package
- From: Larry W. Virden
- Re: building Tkpng package
- References:
- building Tkpng package
- From: Mona
- Re: building Tkpng package
- From: George Petasis
- Re: building Tkpng package
- From: Mona
- Re: building Tkpng package
- From: Spam
- building Tkpng package
- Prev by Date: Re: Embeddable rules engine or expert system for Tcl?
- Next by Date: Re: EuroTcl 2010: LAST CALL before cancellation.
- Previous by thread: Re: building Tkpng package
- Next by thread: Re: building Tkpng package
- Index(es):
Relevant Pages
|