[英]How to add the Github "BigFloat" library to my c++ project
(Sorry if this question is glaringly obvious or poorly written as I am fairly inexperienced to any form of coding and this website) I've been trying to include a library called "Big float" from github to my project as it needs to calculate very large numbers with high precision but my compiler doesn't recognise the library. (抱歉,如果这个问题非常明显或写得不好,因为我对任何形式的编码和这个网站都没有经验)我一直在尝试将一个名为“Big float”的库从 github 包含到我的项目中,因为它需要非常计算高精度的大数字,但我的编译器无法识别该库。 I am using codeblocks version 20.03.
我正在使用 codeblocks 版本 20.03。 I have tried: project -> build options -> linker settings and then adding the files there but to no avail.
我试过:项目 -> 构建选项 -> linker 设置,然后在那里添加文件但无济于事。 I also tried: settings -> compiler -> linker settings and adding the files in there.
我也尝试过:设置 -> 编译器 -> linker 设置并在其中添加文件。
link: https://github.com/Mariotti94/BigFloat链接: https://github.com/Mariotti94/BigFloat
Again, sorry for my lack of knowledge and thank you.再次,对我缺乏知识表示抱歉,谢谢。
The library you are referring to appears to consist of source code only.您所指的库似乎仅包含源代码。 This means you need to compile it yourself.
这意味着您需要自己编译它。 Just add the "BigFloat.cc" and "BigFloat.h" files to your project.
只需将“BigFloat.cc”和“BigFloat.h”文件添加到您的项目中。 Then, in your own code, write
#include "BigFloat.h"
to get access to the BigFloat
class.然后,在您自己的代码中,编写
#include "BigFloat.h"
以访问BigFloat
class。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.