[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
linking process
From: |
Frank Rehberger |
Subject: |
linking process |
Date: |
08 May 2002 18:36:16 +0200 |
Hello,
I want to use a gprolog instance as component within Gnome-Application,
wrapped with CORBA-interface.
I have got a predefined building process using autoconf/automake. I
would prefer to use 'gplc -c foo.pl' only to convert prolog file into
object file and I would like to use default linking mechanisms.
When linking, symbols cant be resolved. Any suggestions what I have got
to add to PROLOG_LIBS variable? Currently settings look like:
------------------- ./configure.in -------------
..
PROLOG_CFLAGS="-I/usr/lib/gprolog-1.2.8/include"
PROLOG_LIBS="-L/usr/lib/gprolog-1.2.8/lib -lengine_fd -lengine_pl
-lbips_fd -lbips_pl"
AC_SUBST(PROLOG_CFLAGS)
AC_SUBST(PROLOG_LIBS)
..
-----------------------------------------------
------------ ./src/Makefile.am ----
bin_PROGRAMS=mrp_sked
address@hidden@ @PROLOG_LIBS@
address@hidden@ @PROLOG_CFLAGS@
mrp_sked_SOURCES= \
main.c \
mrp-sked-skels.c \
mrp-sked-common.c \
mrp-sked.h \
prolog-main.o
OBJS=main.o mrp-sked-skels.o mrp-sked-common.o prolog-main.o
mrp-sked : $(OBJS)
gplc $(OBJS)
PROLOG_OBJ=prolog-main.pl
prolog-main.o : prolog-main.pl
gplc -c prolog-main.pl
FIRST_IDLOUT=mrp-sked.h mrp-sked-skels.c mrp-sked-common.c
$(FIRST_IDLOUT): $(top_srcdir)/src/mrp-sked.idl $(ORBIT_IDL)
$(ORBIT_IDL) --nostubs $(top_srcdir)/src/mrp-sked-first.idl
BUILT_SOURCES=$(FIRST_IDLOUT) $(PROLOG_OBJ)
CLEANFILES=$(FIRST_IDLOUT) $(PROLOG_OBJ)
dist-hook:
cd $(distdir) ; rm -f $(CLEANFILES)
-----------------------------------------
--
-------------------------------------------------
Frank.Rehberger at acm.org
-------------------------------------------------
The Twelve Networking Truths
http://www.ietf.org/rfc/rfc1925.txt?number=1925
-------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- linking process,
Frank Rehberger <=