I use the Wingz spreadsheet under a SunOs 4.1.3 at work, and am trying
to set up a similar environment on my Linux system. To do this I need
to compile Wingz external add-ins.
(Nice spreadsheet by the way. See the homepage at:
http://www.wingz.com/Welcome.html)
The problem is that I am unable to link after compiling. The add-in
code has no 'main', as it is in a file $WINGZ/lib/libwztools.a. On
SunOs, doing a:
gcc -O -I$(WINGZ)/include -c TestFunc.c -o TestFunc.o
gcc -O -I$(WINGZ)/include -o great_zot TestFunc.o \
-L$(WINGZ)/lib -lwztools -lm
works great, but under Linux the link fails with a message like:
/usr/lib/crt1.o (...) undefined symbol 'main'
'nm' shows 'main' as being defined in $WINGZ/lib/libwztools.a, so
I am at a loss to how to get this to compile.
Linux Kernel: 1.3.99
Wingz version: 1.4
GCC version: 2.6
Any hints would be greatly appreciated.
Shaun
----------------------------------------------------------------------
Shaun Lawson Tel: [+81]3-5571-7388
Assistant Vice Pres. WWW: http://www.atrium.com/shaun