On Mon, 30 Oct 2000, kason wong wrote:
> Hi,
>
> thanks, but I still have some problem when i tried to compile all lib into a static
>lib.
>
> g++ -o libCOPS.a COPS.o -L/home/kwong/thesis/codes/lib -lcops -lutil -lpthread
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
> collect2: ld returned 1 exit status
> make: *** [libCOPS.a] Error 1
You can't load a static lib, it has to be a shared lib. Look back at that
Makefile I posted for a working example.
What's "main"? If g++ can't find its symbols, the JVM sure won't load it,
either.
--
Joi Ellis Software Engineer
Aravox Technologies [EMAIL PROTECTED], [EMAIL PROTECTED]
No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried. Anything
that kicks a monopoly in the pants has got to be good for something.
- Chris Johnson
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]