🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gmane.comp.ai.prolog.swi
1 messages
1 total messages Started by "Henning, Brian" Fri, 19 Apr 2002 14:30
RE: c++ with prolog
#39
Author: "Henning, Brian"
Date: Fri, 19 Apr 2002 14:30
104 lines
3040 bytes
From brian.henning@navitaire.com Sat Apr 20 05: 30:11 2002
X-MIME-Autoconverted: from quoted-printable to 8bit by swi.psy.uva.nl id g3JJV0u23190
List-Unsubscribe: <mailto:prolog-request@swi.psy.uva.nl?subjectX-Mailer: Internet Mail Service (5.5.2653.19)
List-Help: <mailto:prolog-request@swi.psy.uva.nl?subjectPrecedence: list
List-Post: <mailto:prolog@swi.psy.uva.nl>
X-Loop: prolog@swi.psy.uva.nl
List-Subscribe: <mailto:prolog-request@swi.psy.uva.nl?subjectX-Status: N
Resent-Sender: prolog-request@swi.psy.uva.nl
X-Mailing-List: <prolog@swi.psy.uva.nl> archive/latest/1990
Status: R 

Manuel,

is there a way to convert these libraries so you can use gcc
maybe it will work with the gcc compiler?

Brian

-----Original Message-----
From: Wolfstieg@t-online.de [mailto:Wolfstieg@t-online.de]
Sent: Friday, April 19, 2002 12:55 PM
To: Manuel
Cc: prolog@swi.psy.uva.nl
Subject: Re: [SWIPL] c++ with prolog



   Hallo, hallo Manuel

is tlink.exe the right one or shouldn't it be tlink32.exe? It seems to
be a problem of the project settings. Did you per accident select a
16-Bit target?
  Anyway this is a work that I also will have to do for many reasons.
One is that bc5 comes with a a second compiler that optimizes for speed
as good as new special tools, but for ¡all! kinds of x86 processors.

   Grüße, Gerhard Wolfstieg


Manuel schrieb:
> 
> Hi, I´m trying to use c++ with prolog. Actually I´m using Borland Bc5
> compiler.
> The problem is that a really simple program (a call to the constructor)
> doesn´t
> work. It compiles but it generates a link error.
> 
> The c++ program is :
> 
> #include <SWI-cpp.h>
> #include <stdlib.h>
> void main(int argc,char **argv)
> {
>   PlEngine e(argv[0]);
> }
> 
> And the error is (It also contains a few warnings...):
> 
> Info :Building...
> Info :Compiling C:\c++Prolog\prueba.cpp
> Warn :  SWI-CPP.H(375,3):Functions containing some if statements are not
> expanded inline

....

> Warn :  SWI-CPP.H(661,2):Functions containing missing return statements
> are not expanded inline
> Warn :  SWI-CPP.H(671,2):Functions containing missing return statements
> are not expanded inline
> Warn :  SWI-CPP.H(805,2):Possibly incorrect assignment
> Warn :  SWI-CPP.H(808,2):Possibly incorrect assignment
> Warn :  prueba.cpp(8,2):Parameter 'argc' is never used
> 
> THE ERROR :
> Info :Transferring to C:\BC5\BIN\tlink.exe @C:\C__PRO~1\PRUEBA.R$P
> Fatal:  (1,1):Bad object file record in ..\archiv~1\pl\lib\plterm.lib near
> module file offset 0x00000000
> 
> Has anybody a idea of the problem?. I´ve been trying to solve it for a
> long time, but no way.
> 
> Thanks.


----------------
* To UNSUBSCRIBE, please use the HTML form at

    http://www.swi.psy.uva.nl/projects/SWI-Prolog/index.html#mailinglist

or send mail to prolog-request@swi.psy.uva.nl using the Subject:
"unsubscribe"
(without the quotes) and *no* message body.

** An ARCHIVE of this list is maintained at

    http://www.swi.psy.uva.nl/projects/SWI-Prolog/mailinglist/archive/


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads