简体   繁体   中英

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. I am using codeblocks version 20.03. I have tried: project -> build options -> linker settings and then adding the files there but to no avail. I also tried: settings -> compiler -> linker settings and adding the files in there.

link: 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. Then, in your own code, write #include "BigFloat.h" to get access to the BigFloat class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM