I'm trying to compile scratchlib on a system running Gentoo GNU/Linux, but when I do, I get a strange error. Here's the log of the compile attempt.
levi@localhost ~/scratchlib/library $ libtool --mode=compile --tag=CXX g++ ./include/DAnalyse.h ./include/timeCodeArray.h ./src/DAnalyse.cpp -o libscratchlib.lo g++ ./include/DAnalyse.h ./include/timeCodeArray.h ./src/DAnalyse.cpp -fPIC -DPIC -o .libs/libscratchlib.o /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../crt1.o: In function `_start': init.c:(.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status
What am I doing wrong?
Check out the latest SVN version. There's a simple makefile included.
Log in to post a comment.
I'm trying to compile scratchlib on a system running Gentoo GNU/Linux, but when I do, I get a strange error. Here's the log of the compile attempt.
levi@localhost ~/scratchlib/library $ libtool --mode=compile --tag=CXX g++ ./include/DAnalyse.h ./include/timeCodeArray.h ./src/DAnalyse.cpp -o libscratchlib.lo g++ ./include/DAnalyse.h ./include/timeCodeArray.h ./src/DAnalyse.cpp -fPIC -DPIC -o .libs/libscratchlib.o
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../crt1.o: In function `_start':
init.c:(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
What am I doing wrong?
Check out the latest SVN version. There's a simple makefile included.