Unable to compile "gprolog.h" under Mac OS X/Project Builder

Phillip Soltan <[email protected]>
Newsgroups gmane.comp.gnu.prolog.bugs
Message-ID <[email protected]>
I have gprolog-1.2.13 compiled and running on my eMac, which runs OS X 
(10.1.5).  It runs Prolog programs fine but when I try and compile a C 
program that includes "gprolog.h", I get compiler warnings.

error: 	illegal external declaration, missing ; after 'reg_bank"
for line 221 in gprolog.h
	register WamWord 		*reg_bank asm ("15");

and

error:	illegal external declaration, missing ; after TR
for line 222 in gprolog.h
	register WamWordP		TR  asm ("20");


I'm not sure what the programmer was trying to accomplish with the "asm" 
statements.  Putting a semicolon in doesn't help either.  The Project 
Builder application is using the GCC 2.95.2 toolchain.

Thanks,

Phillip Soltan
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.