Re: mini assembler files compatible between releases?

Daniel Diaz <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Hi,

The mini-asm (and also Prolog libraries) have changed since 1.0.5. Why 
don't you recompile the .pl file which has produced your .ma file 
(instead of trying to reuse this .ma). If you want the .ma you can use
    gplc -M prog.pl

Hope this helps

Pär Andersson wrote:
> Hi,
> 
> First of all i'm not a prolog coder, i'm just trying to build some code 
> under Cygwin.
> 
> This program is using both C and Prolog code.
> 
> The code package includes only the mini-assembler files, and i'm almost 
> sure
> that GNU Prolog 1.0.5 were used to generate these.
> 
> Are these compatible with for example GNU Prolog 1.2.6?
> 
> As i wrote above i'm no Prolog coder so at first i just downloaded 1.2.6 
> and
> i tried to build. But the program will crash in Start_Prolog, if i link 
> with the prolog object
> files. It's in Find_Linked_Objects (*p->fct_init) () it will crash.
> Looks like Create_Atom will be called with trash pointers there.
> (It will not crash here if i exclude all the .o files that were created 
> from the .ma files in the build)
> 
> 
> But i thought that this might be becuase of incompatibility between .ma 
> files
> made with 1.0.5 and used with 1.2.6 so i downloaded the 1.0.5 version 
> instead.
> 
> Now it wont link, im using the same Makefile but now it looks just like 
> it ignores the
> libraries that i want to link with (Tcl, Tk).
> 
> I get unresolveds for all functions in the Tcl and Tk libraries.
> 
> Link line goes something like this
> 
> gplc -o test a.o b.o c.o aa.o bb.o cc.o -L "-L/usr/local/lib -ltcl84 
> -L/usr/local/lib -ltk84"
> 
> Now this links with 1.2.6 but gives undefined reference for functions in 
> Tcl and Tk when linking with 1.0.5.
> 
> So my questions are.
> 
> Are the .ma files compataible between 1.0.5 and 1.2.6?
> Why do i get undefined reference with 1.0.5 when 1.2.6 links?
> 
> (btw gcc version is 3.3.3 (cygwin special))
> 
> Best regards,
> 
> ./Pär Andersson
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.