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

goc-v2编译时指定了LD_LIBRARY_PATH貌似不起作用 #354

Closed
chenrongjie0704 opened this issue Oct 23, 2023 · 1 comment
Closed

goc-v2编译时指定了LD_LIBRARY_PATH貌似不起作用 #354

chenrongjie0704 opened this issue Oct 23, 2023 · 1 comment

Comments

@chenrongjie0704
Copy link

1、编译前已设置了LD_LIBRARY_PATH变量

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:/xaas-central/base/aksk/myaksk/gosdk:/xaas-central/base/aksk/myaksk/gosdk/lib

2、用goc编译时输出的日志,提示找不到头文件,common.h就在/xaas-central/base/aksk/myaksk/gosdk/include下

[done] √ re-vendor the project done
[info]   go build cmd is: [go build -installsuffix cgo -ldflags "-s
 		-X "main.BuildTime='2023-10-23T08:15:00+0000'"
 		-X "main.GoVersion='go version go1.19.5 linux/amd64'"
 		" -o /xaas-central/apps/ucenter/ucenter -tags "doc cn" -trimpath], in path [/tmp/gocbuild2fad61b9efc0]
# myapp.org/base/aksk/myaksk/gosdk
mygo.cpp:352:10: fatal error: common.h: No such file or directory
  352 | #include "common.h"
      |          ^~~~~~~~~~~~~~~

3、将goc build换成go build,是可以通过编译的,貌似是goc-v2的问题?感谢解答

@chenrongjie0704
Copy link
Author

goc自身的问题已排除

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant