链接库和macport

时间:2014-02-10 06:42:14

标签: macos gcc compiler-construction macports

我安装了gcc47 macport。有谁知道如何链接这些库?

(我是一个菜鸟。详细解释将不胜感激。)

这是我在尝试使用iostream进行编译时遇到的错误

In file included from /opt/local/include/gcc47/c++/bits/postypes.h:42:0,
             from /opt/local/include/gcc47/c++/iosfwd:42,
             from /opt/local/include/gcc47/c++/ios:39,
             from /opt/local/include/gcc47/c++/ostream:40,
             from /opt/local/include/gcc47/c++/iostream:40,
             from practice.cpp:1:
/opt/local/include/gcc47/c++/cwchar:46:19: fatal error: wchar.h: No such file or    directory

0 个答案:

没有答案