Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
FreeBSD build
Russell:
Hello, I've been attempting to get CodeBlocks to build on freebsd, here are my specs:
* FreeBSD 6.1 i386
* wxWidgets 2.6.3
* CB SVN rev 3207
I got as far as compiling it, but it stopped halfway, the error is:
"In file included from sqplus.h:18, from SqPlus.cpp:1: /usr/include/malloc.h:3:2: error "<malloc.h> has been replaced by <stdlib.h>"
*** Error code 1
...
Is this just a problem with the current revision or is my build messed up in some way? :?
mandrav:
Open that file and change "#include <malloc.h>" to "#include <cstdlib>".
And be sure to tell us if it worked or not so we can make the change in our repository...
afb:
stdlib.h is already being included, so I think all that is needed is to avoid including the non-standard malloc.h header on the FreeBSD platform ?
--- Code: ---#ifndef _SQ_PLUS_H_
#define _SQ_PLUS_H_
#include <stdlib.h>
#ifdef __APPLE__
#include <malloc/malloc.h>
#elif !defined(__FREEBSD__)
#include <malloc.h>
#endif
#include <memory.h>
--- End code ---
Something like that, anyway. HAVE_MALLOC_H is also nice, but requires config.h first. And we might not want to introduce that in the SqPlus sources ? (and this bug should go upstream)
Russell:
--- Quote from: mandrav on November 13, 2006, 02:06:01 pm ---Open that file and change "#include <malloc.h>" to "#include <cstdlib>".
And be sure to tell us if it worked or not so we can make the change in our repository...
--- End quote ---
that fixed it, but I am now having trouble with this:
autorevision.h:14: error: 'encoding' was not declared in this scope
...
afb:
--- Quote from: Russell on November 13, 2006, 09:02:44 pm ---autorevision.h:14: error: 'encoding' was not declared in this scope
--- End quote ---
What does your src/sdk/autorevision.h look like ?
(sounds like something went wrong, generating it)
Navigation
[0] Message Index
[#] Next page
Go to full version