使用CGO开发结构链代码

I'm using cgo to develop fabric's chaincode ./my_cc ├── vendor │ └── somecgopkg │ ├── build │ │ ├── interface.o │ │ ├── test │ │ └── test.o │ ├── lib │ │ └── libxxx.so │ ├── mypkg.go │ ├── mypkg_test.go │ └── src │ ├── mycfile.cpp │ └── mycfile.hpp ├── my_cc.go └── my_cc_test.go

mypkg.go

```
package somecgopkg

/*
#cgo CFLAGS: -I./src
#cgo LDFLAGS: -L./lib -lxxx
#include "mycfile.hpp"
#include <stdlib.h>
*/
import "C"

func SomeFunc() {
   ...
}
...
```

Then I successfully installed this chaincode. But when I try to instantiate this chaincode, seems something wrong with it

```
Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: Failed to generate platform-specific docker build: Error returned from build: 2 "# github.com/hyperledger/fabric/examples/chaincode/go/my_cc/vendor/somecgopkg
chaincode/input/src/github.com/hyperledger/fabric/examples/chaincode/go/my_cc/vendor/somecgopkg/mypkg.go:6:25: fatal error: mycfile.hpp: No such file or directory
```

First of all I have to explain, local test for my somecgopkg, everything works fine with cgo, So I would like to know about whether I can use cgo in fabric chaincode, if I can, then where is the problem with my code? Thank you for your attention