随笔分类 - c++
Linux下动态链接库 与gcc 选项
摘要:-L 编译时查找动态链接库的路径-lxxx(小写) e.g -lcudart = link libcudart.so ,-I(大写) 头文件的路径-rpath (-R), 编译时指定链接动态库的路径可以用ldd 看看是不有 ‘not found’在你链接的库后面,解决方法是通过-Wl,rpath=...
阅读全文
Embedding Python in C
摘要:http://codextechnicanum.blogspot.com/2013/12/embedding-python-in-c-converting-c.html//Make some vectors containing the data static const double xa...
阅读全文
makefile
摘要:Notes on GNU MakefileVPATH=srcVPATH指定寻找源代码的路径,如果多个文件夹含有同名文件,总是选择找到的第一个。path %.c srcvpath %.h include# set LD_LIBRARY_PATHexport CC = gccexport CXX = ...
阅读全文
linux下 C++ 读取mat文件 MATLAB extern cyphon scipy 未完待续
摘要:1.使用Matlab的C扩展,需要用户安装matlab。g++ -L/media/exsoftware/MATLAB/R2013b/bin/glnxa64 -Wl,-rpath,/media/exsoftware/MATLAB/R2013b/bin/glnxa64 -o "test" ./d.o ....
阅读全文
浙公网安备 33010602011771号