users-prolog
[Top][All Lists]
Advanced

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

Multiple definitions of 'main' - C calling Prolog


From: Coker, Jonathan M
Subject: Multiple definitions of 'main' - C calling Prolog
Date: Fri, 18 Jan 2002 10:10:20 -0600

Hello,
   I am running Cygwin 1.3.2 on an Win 2k Dell pc.  I downloaded and
installed gprolog 1.2.8 and (applause to the author and contributors)
everything seems to work fine, with one exception.  When I try to build the
example calling Prolog from C I get the following:
======
gplc -C '-Wall -g' new_main.pl new_main_c.c
/tmp/gplc001792.o: In function `main':
/home/jonathan/gprolog-1.2.8/ExamplesC/new_main_c.c(.text+0x6c): multiple
definition of `main'
/tmp/gplc001792.o(.text+0x6c):/home/jonathan/gprolog-1.2.8/ExamplesC/new_mai
n_c.c: first defined here
collect2: ld returned 1 exit status
compilation failed
make: *** [new_main] Error 1
======
The system is using gcc version 2.95.3-4 (cygwin special).
I have looked through the documentation, and the archives for both mailing
lists (user and bug) but have not been
able to find anything.  I have looked for some flag to tell gplc I am
providing my own version of  'main' but have drawn a blank.
Any assistance will be appreciated.

Regards,

Jonathan



reply via email to

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