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

SVN 2343 doesn't compile under linux

<< < (2/3) > >>

Michael:
Hello,

I have updated C::B to the latest revision (2346) and tried to build it with cbp.

I have got the Crash Handler errors. Strange because I could build .deb package of rev2343 yesterday... :?

The errors are:


--- Quote ---src/app.cpp:340: undefined reference to `CrashHandler::~CrashHandler()'
src/app.cpp:340: undefined reference to `CrashHandler::CrashHandler()'

--- End quote ---

May be it would be useful to add a #ifdef to avoid errors on Linux.

Best wishes,
Michael

mandrav:
It seems Thomas didn't add these files in non-windows builds.
The files themselves are #ifdef'd so they won't actually be compiled, but they need to be added to the build.
I will do it later today.
For the time being do it yourselves, locally.

For autotools, edit src/src/Makefile.am and add crashhandler.cpp in the codeblocks_SOURCES list of files.
For the .cbp builds, add src/crashhandler.cpp|h in the codeblocks-unix.cbp.

TheTuxKeeper:

--- Quote from: mandrav on April 14, 2006, 03:59:19 pm ---It seems Thomas didn't add these files in non-windows builds.
The files themselves are #ifdef'd so they won't actually be compiled, but they need to be added to the build.
I will do it later today.
For the time being do it yourselves, locally.

For autotools, edit src/src/Makefile.am and add crashhandler.cpp in the codeblocks_SOURCES list of files.
For the .cbp builds, add src/crashhandler.cpp|h in the codeblocks-unix.cbp.

--- End quote ---
In rev 2346 crashhandler.cpp is in the codeblocks_SOURCES list. app.cpp builds without any warnings/errors on fedora core 4.
I build it with autotools/make. Seems only building with .cbp is affected.

thomas:

--- Quote from: mandrav on April 14, 2006, 03:59:19 pm ---It seems Thomas didn't add these files in non-windows builds.
--- End quote ---
Yes, he did (to the best of his knowledge).

He added them to
a) CodeBlocks.cbp
b) CodeBlocks-unix.cbp
c) Makefile.am inside src

He believes you have to run bootstrap again for new files to be honoured, but he isn't entirely sure about this, being an autotools noob :)

Michael:

--- Quote from: daniel2000 on April 14, 2006, 05:15:14 pm ---
--- Quote from: mandrav on April 14, 2006, 03:59:19 pm ---It seems Thomas didn't add these files in non-windows builds.
The files themselves are #ifdef'd so they won't actually be compiled, but they need to be added to the build.
I will do it later today.
For the time being do it yourselves, locally.

For autotools, edit src/src/Makefile.am and add crashhandler.cpp in the codeblocks_SOURCES list of files.
For the .cbp builds, add src/crashhandler.cpp|h in the codeblocks-unix.cbp.

--- End quote ---
In rev 2346 crashhandler.cpp is in the codeblocks_SOURCES list. app.cpp builds without any warnings/errors on fedora core 4.
I build it with autotools/make. Seems only building with .cbp is affected.

--- End quote ---

If I am not wrong, Pecan was using autotools to build C::B rev2343. I got it built with autotools, but not with cbp.

Best wishes,
Michael

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version