There is another problem regarding to the coexistence of xcode gcc and gcc48 from macports. When I do "port select gcc mp-gcc48" , I can compile using "g++". But when I switch back by "port select gcc none", I got the error:
> g++ -g -o HelloWorld HelloWorld.cpp -bash: /opt/local/bin/g++: No such file or directory But strangely, when I do "which g++", I get "/usr/bin/g++". Then why "g++" still try to involve "/opt/local/bin/g++" but not "/usr/bin/g++"? Thanks. Shiyuan On Fri, Jan 10, 2014 at 9:32 PM, Shiyuan <[email protected]> wrote: > That solves the problem. Thanks. > > > On Fri, Jan 10, 2014 at 7:47 PM, Brandon Allbery <[email protected]>wrote: > >> On Fri, Jan 10, 2014 at 9:53 PM, Shiyuan <[email protected]> wrote: >> >>> I am on OS 10.9 Mavericks. I install gcc48 from macport. However, I >>> got the follow error when I compile HelloWorld. What might go wrong? >>> Thanks. >>> >> >> wchar.h is part of the Xcode command line tools package. If you got gcc48 >> from a prebuilt package instead of locally built, you may never have gotten >> the Xcode 5 command line tools (which may be auto-installed the first time >> something invokes `clang`) and may be missing system include files. >> >> `xcode-select --install` should force installation of the command line >> tools. >> >> -- >> brandon s allbery kf8nh sine nomine >> associates >> [email protected] >> [email protected] >> unix, openafs, kerberos, infrastructure, xmonad >> http://sinenomine.net >> > >
_______________________________________________ macports-users mailing list [email protected] https://lists.macosforge.org/mailman/listinfo/macports-users
