Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Problem linking C::B cvs with ubuntu

(1/1)

Anonymous:
hi
i checked out with cvs tha latest codeblocks and tried to compile against wxWidgets2.6(monolithic, shared, nounicode) but had ome problems:
1. i had to change a little the makefile to be able to use it(removed linker opteions regarding *.def file)
2. it almost compiles but:

Running pre-build step
Creating output directory tree
Compressing core UI resources
Compressing plugins UI resources
Packing core UI bitmaps
Packing plugins UI bitmaps
Copying files
cp: omitting directory `templates/common/CVS'
cp: omitting directory `templates/unix/CVS'
cp: omitting directory `templates/common/CVS'
cp: omitting directory `templates/unix/CVS'
cp: cannot stat `tools/ConsoleRunner/console_runner*.exe': No such file or directory
cp: cannot stat `tools/ConsoleRunner/console_runner*.exe': No such file or directory
Stripping debug info from output tree
Creating launch-scripts
Linking executable /home/dani/build/codeblocks/src/CodeBlocks-unix-wx2.6.0...
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:98: undefined reference to `main'
collect2: ld returned 1 exit status


Any ideas?

rickg22:
are you sure you're using the unix makefile? Sounds to me like you tried to use the win32 one.

Anonymous:
Absolutely. I made the corrections after compareing the makefiles(all of them).
I wonder if it's the compiler that's not ok olthough i've allready used it successfuly.

the compiler is:
g++ -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-8ubuntu2)

Navigation

[0] Message Index

Go to full version