使用quadmath的G 4.6.3 Linux中的四倍精度
发布时间:2021-01-12 06:19:29 所属栏目:Linux 来源:网络整理
导读:我尝试执行代码 #include 用命令 g++ test.cpp -o test 我收到错误: /tmp/cctqto7E.o: In function `main':test.cpp:(.text+0x51): undefined reference to `quadmath_snprintf(char*,unsigned int,char const*,...)'collect2: ld returned 1 exit status
我尝试执行代码
用命令
我收到错误:
版本是:
我该如何解决这个问题? 最佳答案 我看到了同样的行为:
一种解决方法是使用此模式包含标头:
之后:
(编辑:淮安站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |