简体   繁体   中英

How do I use Berkelium library in C++ code?

I want to use this library ( https://github.com/sirikata/berkelium/downloads ) with g++ compiler. It has 3 folders: bin, lib and include. What I do with files in each of the folder? And in my C++ code, do I need to use only headers in include folder? Thanks. I need to do this on g++ in Ubuntu 12.04 and I am not using any IDE just vi. Edit: lib folder has a so file.

To compile programs with this library, you need to tell the compiler where are the include files, for object generation, and the library files for the linker job.

In one command line:

g++ -I/path/to/berkelium/include -L/path/to/berkelium/library -o executable yourprogramname -llibberkerium

我会去https://developers.google.com/native-client/peppercpp/ ,该库看起来只是一个包装,并且不受官方支持。

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