Version française
Home     About     Download     Resources     Contact us    
Browse thread
Segfault if *.ml is named the same as the pack
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Goswin von Brederlow <goswin-v-b@w...>
Subject: Segfault if *.ml is named the same as the pack
Hi,

I have a file Gate/Gate.ml that I compile with

ocamlopt -for-pack Gate -I Gate -c Gate/gate.ml

Calling 'new Gate.Gate.wire' then segfauts.

If I rename Gate/gate.ml to Gate/base.ml everything works. Also if I
compile for bytecode everything works.

Any ideas why?


You can download the source and test yourself from

http://mrvn.homeip.net/ologic/

make && ./ologic		segfaults
make MODE=Byte && ./ologic	works

You can quit the program by pressing 'q' in the window.

MfG
        Goswin