If anyone has a solution for getting gcc/g++ to work on Maverick please respond.
I searched and tried everything short of installing and compiling gcc from the gcc project pages.
Tried and it complains that the download server is down.
$ xcode-select --install
xcode-select: note: install requested for command line developer tools
Went to developers website, logged in and downloaded xcode command line tools for maverick -that didnt work either.
Still get
I searched and tried everything short of installing and compiling gcc from the gcc project pages.
Tried and it complains that the download server is down.
$ xcode-select --install
xcode-select: note: install requested for command line developer tools
Went to developers website, logged in and downloaded xcode command line tools for maverick -that didnt work either.
Still get
Code:
g++ -g -Wall -v test1.cpp -o test1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.9.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name test1.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 224.1 -v -g -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0 -stdlib=libc++ -Wall -fdeprecated-macro -fdebug-compilation-dir /Users/alanahmetspahic/cpp/test -ferror-limit 19 -fmessage-length 112 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.9.0 -fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/l2/g7dm2byn60b5nfvrt0_851xr0000gn/T/test1-rJj4lZ.o -x c++ test1.cpp
clang -cc1 version 5.0 based upon LLVM 3.3svn default target x86_64-apple-darwin13.0.0
ignoring nonexistent directory "/usr/include/c++/v1"
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.9.0 -o test1 /var/folders/l2/g7dm2byn60b5nfvrt0_851xr0000gn/T/test1-rJj4lZ.o -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/lib/darwin/libclang_rt.osx.a
ld: can't write output file: test1 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Last edited by a moderator: