[mercury-users] Strange problem
Simon Taylor
stayl at cs.mu.OZ.AU
Thu Jul 3 19:56:14 AEST 2003
On 03-Jul-2003, Pieter Laeremans <pieter at kotnet.org> wrote:
> I'm trying to create a module that enables me to store and retrieve
> data in a postgres database.
>
> So I created a module psql.m and used the foreign language interface
> to include the C-library.
>
> But when I compile and run the program using just a main predicate
> that only contains an "io__nl" I get a segmentation fault.
>
> When I tested the program with an io__write_string as the first
> statement, there didn't appeared any output.
>
> Can you give me a clue about how I should debug this ?
>
> -----------[Mmakefile]-------------
> MLLIBS=-lpq
> MLFLAGS=--make-shared-lib
This will make ml build a shared library rather than an executable.
Trying to execute a shared library will result in a segmentation fault.
Simon.
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list