users-prolog
[Top][All Lists]
Advanced

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

2 libraries


From: eric pramudya
Subject: 2 libraries
Date: Mon, 21 Oct 2002 08:30:46 +0000

Hi,

I find no problem in linking the prolog and C++. When we need to define the library and include it on the compile code like this:
gplc --c-compiler g++ -L '-lstdc++' test.pl pred1.cpp pred2.cpp

But now I cant do that since I must use the compile code to compile the C++ objects as well.
I use:
g++ -I$QTDIR/include Football.cpp Interface.cpp moc_Football.cpp -L$QTDIR/lib -lqt
to compile my program. It runs well (only GUI look and simple function).

And I use:
./a.out
to run the program.

Now I need to use a kind of 2 libraries, one for prolog and another one is for my objects. How do we do this?

All libraries definition for my C++ objects are under Qt Designer library when I define -I$QTDIR and -l$QTDIR.


Any tips or alternative compile command to do this? Or perhaps somebody was having the same problem with me and know how to solve this?


Thanks.

_________________________________________________________________
Get a speedy connection with MSN Broadband.  Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp





reply via email to

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