Dear Luigi,
Thank you very much for your reply! I am really new to config files :). Apologies, if my questions are trivial.
The relevant line:
configure:16042: g++ -c -02 -stdlib=libstdc++ -mmacosx-version-min=10.6 -I/usr/local/include conftest.cpp >&5
clang: error: unknown argument: '-02’
indicates that the compiler is passed “-I/usr/local/include”… but it is likely the case that the "unknown argument: '-02’ " error causes the -I flag to be ignored.
What is the ‘-02’ flag?
When I remove the ‘-02’ flag, “config" finishes successfully (I think…)
Also, the following:
"configure:4267: checking whether we are using the GNU C++ compiler
configure:4286: g++ -c -stdlib=libstdc++ -mmacosx-version-min=10.6 -I/usr/local/include conftest.cpp >&5
configure:4286: $? = 0
configure:4295: result: yes"
suggests that I am using GNU C++ compiler, but I think that OS X substitutes Apple LLVM version 7.0.2 (clang-700.1.81).
And, config.log shows quite a few errors, but config proceeds nevertheless…
Should I be worried about it?
May I now run “make && sudo make install”?
Thank you for your help!
List of errors:
configure:3405: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3416: $? = 1
configure:3405: gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:4566: gcc -E -I/usr/local/include conftest.c
conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:4566: $? = 1
configure:16141: g++ -o conftest -stdlib=libstdc++ -mmacosx-version-min=10.6 -I/usr/local/include -stdlib=libstdc++ -mmacosx-version-min=10.6 -L/usr/local/lib conftest.cpp -lboost_unit_test_framework-gcc42 >&5
ld: library not found for -lboost_unit_test_framework-gcc42
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:16162: g++ -o conftest -stdlib=libstdc++ -mmacosx-version-min=10.6 -DBOOST_TEST_MAIN -DBOOST_TEST_DYN_LINK -I/usr/local/include -stdlib=libstdc++ -mmacosx-version-min=10.6 -L/usr/local/lib conftest.cpp -lboost_unit_test_framework-gcc42 >&5
ld: library not found for -lboost_unit_test_framework-gcc42
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:16141: g++ -o conftest -stdlib=libstdc++ -mmacosx-version-min=10.6 -I/usr/local/include -stdlib=libstdc++ -mmacosx-version-min=10.6 -L/usr/local/lib conftest.cpp -lboost_unit_test_framework-gcc >&5
ld: library not found for -lboost_unit_test_framework-gcc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:16162: g++ -o conftest -stdlib=libstdc++ -mmacosx-version-min=10.6 -DBOOST_TEST_MAIN -DBOOST_TEST_DYN_LINK -I/usr/local/include -stdlib=libstdc++ -mmacosx-version-min=10.6 -L/usr/local/lib conftest.cpp -lboost_unit_test_framework-gcc >&5
ld: library not found for -lboost_unit_test_framework-gcc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:16141: g++ -o conftest -stdlib=libstdc++ -mmacosx-version-min=10.6 -I/usr/local/include -stdlib=libstdc++ -mmacosx-version-min=10.6 -L/usr/local/lib conftest.cpp -lboost_unit_test_framework >&5
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thank you very much once again for your help!
Best wishes,
Oleg