现在的位置: 首页 > 综合 > 正文

gcc 执行c++报错

2018年05月10日 ⁄ 综合 ⁄ 共 380字 ⁄ 字号 评论关闭
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 

 

抱歉!评论已关闭.