[Haskell-cafe] OpenVG: Linker errors with ghc --make, but not
stephen.tetley at gmail.com
Wed Mar 4 06:25:11 EST 2009
Yes this is definitely a problem with the OpenVG package.
Although I wrote the package I don't know enough about the minutiae of
Windows .dlls to sort this out directly (even though I did write most
of the library on a Windows machine). I could try to and write a
cabal+makefile build rather than a pure cabal one to follow the
example of the OpenGL and GLUT libraries, though I don't know if that
would work. With my current OpenGL and GLUT installation on Windows
I can only run GL programs from GHCi rather than compile them.
Please let me know if you want me to try a cabal+makefile package,
though the turnaround might not be quick.
 installed by following these instructions
2009/3/4 Peter Verswyvelen <bugfact at gmail.com>:
> I followed the instructions on how to build OpenVG on Windows. It works fine
> when I run the examples using "GHCi -lopenvg32", but when compiling it with
> "GHC --make -lopenvg32" I get a bunch of linker errors, like
> undefined reference to `vgInterpolatePath'
> undefined reference to `vgModifyPathCoords'
> However it does seem that the libopenvg32.a file contains all these
> undefined references, and it is in the gcc-lib directory of GHC.
> I'm a stuck. Any hints?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe