caffe and c++ compile with g++

版权声明:本文为博主原创文章,转载请加入原文链接,谢谢。。 https://blog.csdn.net/shawncheer/article/details/77073950

g++ 命令:

g++ -o demo_caffe.bin -I /home/shawn/caffe-ssd/include -I /usr/local/cuda-7.5/targets/x86_64-linux/include -fPIC demo_caffe.cpp -lboost_system -lboost_filesystem

c++ 代码:

#include<iostream>

#include<caffe/caffe.hpp>

using namespace std;
using namespace caffe;
int main(){
	cout<<"hello world !"<<endl;
	return 0;
}


猜你喜欢

转载自blog.csdn.net/shawncheer/article/details/77073950
今日推荐