Submitted by gaboc99 on Wed, 02/11/2009 - 11:55.
Hi to all,
i'm trying to compile openMotif 2.3.1 on a 64bit PPC architecture.
After many unsuccessful attempts i'm not able to go on over this error:
compiling step:
gcc -m64 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -o wmluiltok wmluiltok.o
error:
/usr/lib64/crt1.o:(.data.rel.ro.local+0x8): undefined reference to `main'
Any ideas? CFLAGS, LDFLAGS, others?
many thanks,
gab
Mon, 04/06/2009 - 09:38#1
fgenolini
Re: OpenMotif 2.3.1 on PPC
%option main
with this line at the top of the offending .l file, flex will generate the main function and GCC will be happy
OpenMotif assumes the old lex, but most Linux distributions have flex which behaves differently