提交 7f038178 编写于 作者: D dongzhihong

"cgo ldflags config"

上级 242df4f0
package pserver package pserver
/* // #cgo pkg-config: protobuf
// TODO(zhihong): move compile flags to cmake go_library // #cgo CFLAGS: -I ../../
#cgo pkg-config: protobuf // FIXME: ldflags contain "build" path
#cgo CFLAGS: -I ../../ // #cgo LDFLAGS: ../../build/go/pserver/cclient/libpaddle_go_optimizer.a -lstdc++
#cgo LDFLAGS: /Users/dzh/.go/src/github.com/PaddlePaddle/Paddle/build/go/pserver/cclient/libpaddle_go_optimizer.a -lstdc++ // #include "paddle/optimizer/optimizer.h"
#include "paddle/optimizer/optimizer.h" // #include <stdlib.h>
*/ // #include <string.h>
import "C" import "C"
import ( import (
"fmt" "fmt"
"unsafe" "unsafe"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册