[mercury-users] compilation problem, all, some

David Overton dmo at cs.mu.OZ.AU
Sat Jul 17 01:49:47 AEST 2004


On Fri, Jul 16, 2004 at 04:53:42PM -0700, Maurizio Colucci wrote:
> On Friday 16 July 2004 06:19, David Overton wrote:
> > On Fri, Jul 16, 2004 at 02:24:44PM -0700, Maurizio Colucci wrote:
> > > I don't understand... I tried
> > >
> > >   mmc --fno-strict-aliasing main.m
> > >
> > > but the option is not accepted by mmc.
> > >
> > > Could you please give me the full command line needed to compile?
> >
> > This option needs to be passed to GCC.  You can do this using
> >
> > 	mmc --cflags --fno-strict-aliasing main.m
> 
> I'm terribly sorry, but that won't work either. First of all, 
> gcc 3.3.3 has no option --fno-strict-aliasing. The closest I
> could find is --mno-strict-aliasing. Secondly, neither of those options
> works. I tried various combinations of commands, and none of them works. 
> Particularly interesting is the last error: undefined reference to
> <predicate 'main'/2 mode 0>.

Sorry, that should be -fno-strict-aliasing (only one dash at the start).

> mau at dhcppc0:/dat/pub/src/by-mau/tests/mercury>  mmc --cflags "-fno-strict-aliasing" main.m
> main_init.o(.text+0x179): In function `mercury_init':
> : undefined reference to `<predicate 'main'/2 mode 0>'
> collect2: ld returned 1 exit status

It looks like your your version of GCC accepted that option.  You still
have another problem though. I don't know what's causing the link error.
Perhaps try removing all the compiler-generated files (including
main_init.c and main_init.o) and try recompiling.


David
-- 
David Overton
WWW: http://www.overtons.id.au/
Mobile Phone (UK): +44 7799 344 322
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list