libfb_ctor.o Linux compiling CVS problem

Linux specific questions.
Post Reply
robert

libfb_ctor.o Linux compiling CVS problem

Post by robert »

At the end of the linking stage for fbc the compiler is producing this error

.... -o "fbc_new" -( -lfb -lgcc -lc -lm -lpthread -ldl -lncurses "/usr/share/freebasic/lib/linux/libfb_ctor.o" -) "/usr/share/freebasic/lib/linux/crtend.o" "/usr/share/freebasic/lib/linux/crtn.o"
/usr/share/freebasic/bin/linux/ld: /usr/share/freebasic/lib/linux/libfb_ctor.o: No such file: No such file or directory
make: *** [fbc_new] Error 1
cp: cannot stat `./fbc_new': No such file or directory

Robert Wishlaw
coderJeff
Site Admin
Posts: 4383
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Post by coderJeff »

After building the rtlib copy ./src/rtlib/obj/linux/libfb_ctor.o to ./lib/linux/libfb_ctor.o

If that's not in the wiki CVS instructions, it should be.
stylin
Posts: 1253
Joined: Nov 06, 2005 5:19

Post by stylin »

The wiki has been changed to include make install after the building of the run-time and graphics libs, which will copy everything you need from those components into the appropriate directory in the CVS root. The makefile generated for the compiler doesn't have an install target (why ?) so you'll have to copy that manually as <cvs>/FreeBASIC/fbc. A good strategy from there (and perhaps the wiki should be changed) is to simply use the included installer at <cvs>/FreeBASIC/install.sh, which will correctly copy everything you need besides what's needed from the latest stable release. Running the installer with no arguments will display the correct usage.

edit: the Windows install script is of course severely outdated, manual installation is required.
Last edited by stylin on Oct 20, 2006 17:54, edited 1 time in total.
ikkejw
Posts: 258
Joined: Jan 15, 2006 15:51
Location: Fryslân, the Netherlands
Contact:

Post by ikkejw »

Oh and you need to build the compiler first, then RTLib, then GFXLib, and then the compiler again.
Post Reply