problem compiling OpenGL/.../Extensions.hs with GHC version 6.0

Sven Panne Sven.Panne at informatik.uni-muenchen.de
Mon Jun 2 07:08:27 EDT 2003


Andres Loeh wrote:
 > [...] The problem (that can be witnessed by calling ghc with the
 > option -v) is that in calling the C preprocessor, the double quotes
 > around the value of GET_PROC_ADDRESS, which are syntactically
 > necessary, are no longer present. The problem can be fixed by
 > quoting the double quotes once more, i.e. by saying
 >
 > SRC_HC_OPTS += -DCALLCONV=ccall '-DGET_PROC_ADDRESS=\"glXGetProcAddressARB\"'
 >
 > However, this is a change in behaviour compared to earlier versions
 > of ghc that seems undesireable to me ... [...]

I'm currently developing within the build tree of the HEAD from May
24th, and the double quotes *do* come through. If newer GHCs changed
that behaviour, that would truly suck and probably breaks lots of
Makefiles out there. I guess I'll have to build a new GHC to
investigate this further...  >:-(

Cheers,
    S.





More information about the Glasgow-haskell-bugs mailing list