ITeye博客

gcc 执行c++报错

dotjar · 2012-07-09 10:26 · C&C++ · 编程语言 · Markdown

D:\cpp>g++ hello.cc
Info: resolving std::cout  by linking to __imp___ZSt4cout (auto-import)
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without
 --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.

 gcc下执行时报此错 加参:

 

 

g++ -enable-auto-import hello.cc 

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。