Installing boost_date_time in mac
Installing boost_date_time in mac
如何在mac中安装boost_date_time ?我使用macport来安装boost。但是它没有安装date_time。然后我尝试使用从boost网站下载的二进制安装。使用
./bootstrap.sh --prefix=path/to/installation/prefix --with-libraries=library-name-list
但仍然编译失败
g++ -o test -g -O2 -I/usr/include/mysql test.cpp -lz -lz -L/usr/lib/mysql -lmysqlclient -lboost_date_time-mt >&5
ld: library not found for -lboost_date_time-mt
我做错了什么?
MacPorts在/opt/local/include
和/opt/local/lib
中安装头文件和库文件。
-I/opt/local/include -L/opt/local/lib
bootstrap脚本用于构建bjam
(boost构建工具)。
相关文章:
- netcat command in c++
- Difference in displaying cv2 Mat
- C++ MFC Libraries in Travis CI
- 在没有Xcode的情况下在Mac捆绑包中嵌入框架
- 如何在OpenSSL中从configuration.h.in获取configuration.h
- c++17文件系统::recursive_directory迭代器()在mac上没有给出这样的目录,但在windows上
- 如何使用CLion在Mac上创建一个新的.txt文件
- 如何使用Clang/GCC在Mac上为C/C++设置VSCode
- 创建具有 new in 函数和"this is nullptr"异常的对象
- IN, OUT, INOUT Parameters
- 应用程序崩溃并显示"symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference"
- 在 Mac 上使用 CMAKE 将 FFTW 和 FFTWPP 链接到项目中时未定义的符号
- 有人安装"IITB Simplecpp in mac"吗?
- libprotobuf 检查在 Mac OS 上执行程序时失败
- 从 C 样式字符串中删除子字符串 "in place" 在C++代码中
- 如何在 Mac 上使用 c++17 并行标准库算法?
- glTexParameteri segmentation fault in mac
- Installing boost_date_time in mac
- 体系结构的未定义符号x86_64:"_glutInit",引用自:_main in main.o / Netbeans on Mac
- 如何可靠地检测 Mac OS X、iOS、Linux、Windows in C 预处理器