Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

默认capi 的demo 是编译不过的么 #4409

Closed
VamWolf opened this issue Sep 27, 2017 · 3 comments
Closed

默认capi 的demo 是编译不过的么 #4409

VamWolf opened this issue Sep 27, 2017 · 3 comments
Labels
User 用于标记用户问题

Comments

@VamWolf
Copy link

VamWolf commented Sep 27, 2017

默认capi 的demo 是编译不过的么. 少了include 的路径吧

/home/work/paddle_new/trunk/paddle/capi/examples/model_inference/multi_thread/main.c:1:25:
paddle/capi.h: No such file or directory
/home/work/paddle_new/trunk/paddle/capi/examples/model_inference/multi_thread/main.c: In function thread_main': /home/work/paddle_new/trunk/paddle/capi/examples/model_inference/multi_thread/main.c:13: error: paddle_gradient_machine' undeclared (first use in this function)
/home/work/paddle_new/trunk/paddle/capi/examples/model_inference/multi_thread/main.c:13: error: (Each undeclared identifier is reported only once

@gongweibao
Copy link
Contributor

你的makefile里边没有设置include的path吧?

@VamWolf
Copy link
Author

VamWolf commented Sep 27, 2017

已经搞定了,不过觉得,这种默认的东西,demo 发布的时候,可以把include ,lib 路径都默认放进去.

@kuke kuke added Cluster User 用于标记用户问题 and removed Cluster labels Sep 27, 2017
@Xreki
Copy link
Contributor

Xreki commented Sep 28, 2017

c-api demo默认Paddle的C-API库安装在系统的标准路径下,另外,不同用户安装Paddle的路径不一样,也很难在CMakeLists.txt里面指定。

@Xreki Xreki closed this as completed Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User 用于标记用户问题
Projects
None yet
Development

No branches or pull requests

4 participants