[Haskell-cafe] Segmentation fault/access violation when CPLUS_INCLUDE_PATH not set correctly

Carter Schonwald carter.schonwald at gmail.com
Sun Dec 29 01:45:26 UTC 2013


Hehe, linking problems are a subtle critter indeed.  I've actually a pretty
nontrivial linking challenges in some of my own princes currently so I can
sympathize.

On Saturday, December 28, 2013, Henk-Jan van Tuyl wrote:

>
> OK, done that; I asked myself, but I didn't know the answer :-). The
> problem is most likely not wxHaskell specific, but something related to
> compiling/linking.
>
> Regards,
> Henk-Jan van Tuyl
>
>
>
> On Sat, 28 Dec 2013 17:32:36 +0100, Carter Schonwald <
> carter.schonwald at gmail.com> wrote:
>
>  File bug report with the wxhaskell maintainer.  And ask them! :-)
>>
>> Cheers
>> -carter
>>
>> On Saturday, December 28, 2013, Henk-Jan van Tuyl wrote:
>>
>>
>>> L.S.,
>>>
>>> When I compile an application against an experimental version of
>>> wxHaskell*, the application always ends with the message:
>>>   Segmentation fault/access violation in generated code
>>> , unless I set the environment variable CPLUS_INCLUDE_PATH to
>>>   C:\Program Files\Haskell Platform\2013.2.0.0\mingw\lib\
>>> gcc\mingw32\4.5.2\include\c++\
>>> , which is the same value as used when compiling wxHaskell.
>>>
>>> If I copy the contents of C:\Programs\Haskell Platform\2013.2.0.0\ to
>>> some
>>> other location and let CPLUS_INCLUDE_PATH point to the new location of
>>> directory c++, the segmentation fault message reappears.
>>>
>>> Why is this and how can create an application that also works on another
>>> computer?
>>>
>>> Regards,
>>> Henk-Jan van Tuyl
>>>
>>>
>>> * wxHaskell is a binding to the wxWidgets GUI library, which is written
>>> in
>>> C++
>>>
>>
> --
> Folding at home
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get
> us closer sooner. Watch the video.
> http://folding.stanford.edu/
>
>
> http://Van.Tuyl.eu/
> http://members.chello.nl/hjgtuyl/tourdemonad.html
> Haskell programming
> --
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20131228/60bb6e8b/attachment.html>


More information about the Haskell-Cafe mailing list