User forums > Help
Building CodeBlocks 12.11 on Mac Os X 10.8
stateless:
Hi everyone,
I'm trying to build CodeBlocks 12.11 from SVN on Mac Os X Mountain Lion (10.8.3) but i'm receiving this error during the configuration
--- Code: ---checking for g++... g++
checking whether the C++ compiler works... no
configure: error: in `/Users/Rock/Desktop/Codeblocks/trunk':
configure: error: C++ compiler cannot create executables
--- End code ---
can anyone tell me why g++ should not work? ??? it worked for wxWidget...
Thank you.
Alpha:
I do not use Mac, but to dig deeper into your problem, you could try seeing if configure dumped a log of the exact test that failed. You could also test if configure can be executed with increased verbosity (ex. try: --verbose).
stateless:
Thank you for your answer,
./configure --verbose produce the same output as ./configure but here it is a part of the .log file where you can see the failure of the g++ test:
--- Code: ---configure:3668: checking whether the C++ compiler works
configure:3690: g++ -O2 -ffast-math -DCB_AUTOCONF -Wl,--no-undefined conftest.cpp >&5
ld: unknown option: --no-undefined
collect2: ld returned 1 exit status
configure:3694: $? = 1
configure:3732: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "codeblocks"
| #define PACKAGE_TARNAME "codeblocks"
| #define PACKAGE_VERSION "12.11svn8909"
| #define PACKAGE_STRING "codeblocks 12.11svn8909"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "codeblocks"
| #define VERSION "12.11svn8909"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3737: error: in `/Users/Rocco/Desktop/Codeblocks/trunk':
configure:3739: error: C++ compiler cannot create executables
See `config.log' for more details
--- End code ---
Alpha:
As a hot patch, delete all occurrences of -Wl,--no-undefined in the file acinclude.m4.
Someone with more autoconf knowledge (jens?) should figure out how to properly disable this, when necessary.
stateless:
delated but with no success ??? the .log file is the same :(
Navigation
[0] Message Index
[#] Next page
Go to full version