#1125: wingrass - ctypes - compiling error
------------------------------+---------------------------------------------
Reporter: hellik | Owner: grass-...@…
Type: defect | Status: new
Priority: blocker | Milestone: 6.5.0
Component: Compiling | Version: svn-trunk
Keywords: wingrass, ctypes | Platform: MSWindows Vista
Cpu: x86-32 |
------------------------------+---------------------------------------------
Comment(by glynn):
Replying to [comment:43 martinl]:
> > Another alternative is to just keep both versions.
>
> shouldn't be versioned version enough?
Currently, everything uses the unversioned name when linking. But the
libraries are built using the versioned name then symlinked to the
unversioned name (on Windows, "ln -s" actually makes a copy). On Windows,
this causes the versioned name to be embedded in the DLL, and this name is
preserved when creating the copy. When linking against the DLL, the
program remembers the name which is embedded in the DLL, not the name used
in the -l switch, so the program actually depends upon the versioned DLL.
OTOH, none of this applies to ctypesgen, which uses the name given in a -l
switch as the name of the library which should be loaded at run-time.
If you want to use only unversioned libraries, you need to modify
Shlib.make to create the DLL with the unversioned name. Copying or
renaming the DLL won't work.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1125#comment:44>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev