简体   繁体   English

如何将 Github "BigFloat" 库添加到我的 c++ 项目中

[英]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.

相关问题 我不知道如何使用/运行这些位于我试图添加到项目中的 Github C++ 库中的文件? - I Don't Know How To Use/Run These Files That Are In A Github C++ Library I'm Trying To Add To My Project? 如何将库添加到NetBeans C ++项目? - How do I add a library to my NetBeans C++ project? 如何将 Eigen 库添加到 C++ 项目 - How to add Eigen library to c++ project 如何将Eclipse C ++项目构建为库并将其添加到另一个项目 - How to build Eclipse C++ project as a library and add it to another project 如何在 c++ 中将 OpenXLSX 添加到我的项目中? - How to add OpenXLSX to my project in c++? 我应该在 c++ 中将整个库添加到我的项目中吗 - Should I add whole library to my project in c++ 如何在我的C ++ Android Gradle项目中添加“something.a”库文件? - How do I add a “something.a” library file to my C++ Android Gradle project? 如何在 Qt Creator 中将 PoDoFo 外部库添加到我的 C++ 项目中? - How to add PoDoFo external library to my C++ project in Qt Creator? 如何将我的静态库链接到我的C ++项目CMake? - How to link my static library to my c++ project CMake? 如何使用自制软件、cMake 和 cLion 将库添加到 C++ 项目 - How to add library to C++ Project using homebrew, cMake and, cLion
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM