稳定盈利的期货交易方法-量化趋势交易

alantop -专业量化投资者

爱好:量化投资,逆向工程,渗透
随笔 - 595, 文章 - 0, 评论 - 921, 引用 - 0
数据加载中……

undefined reference to `std::ios_base::Init::Init()'错误的解决方案

# gcc alantop.cpp
/tmp/cchoAlDx.o: In function `__static_initialization_and_destruction_0(int, int                                                                             )':
alantop.cpp:(.text+0x38): undefined reference to `std::ios_base::Init::Init()'
alantop.cpp:(.text+0x3d): undefined reference to `std::ios_base::Init::~Init()'
/tmp/cchoAlDx.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status

增加编译参数 -lstdc++
# gcc alantop.cpp -lstdc++

posted on 2018-08-18 06:33 AlanTop 阅读(1680) 评论(0)  编辑 收藏 引用 所属分类: C++


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理