gcc48 error on Mavericks

2014-01-10 Thread Shiyuan
Hi all, 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. In file included from /opt/local/include/gcc48/c++/bits/postypes.h:40:0, from /opt/local/include/gcc48/c++/iosfwd:40,

Re: gcc48 error on Mavericks

2014-01-10 Thread Brandon Allbery
On Fri, Jan 10, 2014 at 9:53 PM, Shiyuan gshy2...@gmail.com 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

Re: gcc48 error on Mavericks

2014-01-10 Thread Shiyuan
That solves the problem. Thanks. On Fri, Jan 10, 2014 at 7:47 PM, Brandon Allbery allber...@gmail.comwrote: On Fri, Jan 10, 2014 at 9:53 PM, Shiyuan gshy2...@gmail.com wrote: I am on OS 10.9 Mavericks. I install gcc48 from macport. However, I got the follow error when I compile

Re: gcc48 error on Mavericks

2014-01-10 Thread Shiyuan
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

Re: gcc48 error on Mavericks

2014-01-10 Thread Brandon Allbery
On Sat, Jan 11, 2014 at 12:56 AM, Shiyuan gshy2...@gmail.com wrote: 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: