c++ - 有没有简单的方法将 xlnt 包含到 Ubuntu 上的 Visual Studio Code 中?

标签 c++ ubuntu xlsx

我想使用 xlnt 库来编辑 xlsx 数据,但我不知道如何将其输入到 VSC 的全局库中。你能告诉我一步一步如何安装这个库吗?
https://github.com/tfussell/xlnt

最佳答案

您首先需要一些软件包:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install cmake
sudo apt-get install zlibc
以下步骤更新编译器并设置适当的环境变量:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt-get upgrade
sudo apt-get install gcc-6 g++-6
export CC=/usr/bin/gcc-6  
export CXX=/usr/bin/g++-6
以下步骤将安装 xlnt 从 xlnt 存储库下载 zip 文件:
cd ~
unzip Downloads/xlnt-master.zip
cd xlnt-master
cmake .
make -j 2
sudo make install
以下步骤会将共享库名称映射到相应共享库文件的位置:
sudo ldconfig
xlnt 现在可以在您的 Ubuntu 实例上使用。
source

关于c++ - 有没有简单的方法将 xlnt 包含到 Ubuntu 上的 Visual Studio Code 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64827487/

相关文章:

c++ - vector 的值在不应该发生变化的时候发生了变化

shell - 如何检查加密磁盘之前是否使用 cryptsetup 打开?

perl - 在perl中将序列值转换为日期

python-sphinx - 狮身人面像 : include xlsx data into rst

excel - VBA Excel-Validation 导致工作簿文件损坏

c++ - Bison 的错误 : request for member ‘charTokens’ in something not a structure or union

c++ - OpenGL - 将帧缓冲区纹理设置为完全透明

c++ - 使用 std::string 作为通用 uint8_t 缓冲区

ubuntu - 通过 ssh 进入远程机器时保持 ZSH 配置

python - 在 vim 中安装 YouCompleteMe 时遇到 python 问题