🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Taylor Tue, 05 Jan 1993 23:42
what is ___main?
#1586
Author: Ron Taylor
Date: Tue, 05 Jan 1993 23:42
38 lines
1418 bytes
I think we're missing a gcc library or something...


napali /home/beauty/rontay/test 548 cat main.c
main()
{
}
napali /home/beauty/rontay/test 549 gcc -c main.c
napali /home/beauty/rontay/test 550 gcc -o main main.o
main.o: undefined reference to `___main'
napali /home/beauty/rontay/test 551 
napali /home/beauty/rontay/test 551 
napali /home/beauty/rontay/test 551 
napali /home/beauty/rontay/test 551 gcc main.c
main.o: undefined reference to `___main'
napali /home/beauty/rontay/test 552 
napali /home/beauty/rontay/test 552 
napali /home/beauty/rontay/test 552 nm main.o

nm: can't open 'main.o'.
napali /home/beauty/rontay/test 553 gcc -c main.c
napali /home/beauty/rontay/test 554 nm main.o
         U ___main
00000000 T _main
00000000 t gcc2_compiled.
napali /home/beauty/rontay/test 555 


If I move main.c to main.cc and try "gcc main.cc" the
compilation completes with no errors.


Any ideas on what I'm doing wrong?

Thanks!

Ron Taylor
rontay@netxwest.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads