[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C libraries in Mac version

From: William McCune
Subject: C libraries in Mac version
Date: Mon, 23 Feb 2004 13:02:33 -0600

I fetched gprolog-1.2.16.tar.gz and compiled and installed
it on a Mac (Panther), using the default configurations.
It seems to work consulting and compiling ordinary Prolog programs.

However, I have a problem linking C code that calls library functions.
I have narrowed it down to the following vacuous example, which
shows the problem.

    % touch
    % gplc -L -lcurl
    % ./empty_test 
    bus error


   1. The curl library is not used in this example, and the same
      problem occurs with other libraries, e.g., -lm or -lssl.
   2. This example works correctly if I omit '-L -lcurl'.
   3. This example works correctly with the Linux binary RPM.

Thanks for any help you can give.


 |  William McCune               |  e-mail:  address@hidden |
 |  MCS-221                      |  phone:   +1-630-252-3065    |
 |  Argonne National Laboratory  |  FAX:     +1-630-252-5986    |
 |  Argonne, IL  60439-4844      |                              |
 |  U.S.A.                       |                              |
 |                     |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]