Problem solved, thanks.

I created a harfbuzz.cc inside the go package directory, it contains only 
one line

#include "harfbuzz/src/harfbuzz.cc"


and then change the cgo header to:

/*
#cgo CFLAGS: -Iharfbuzz/src
#cgo CXXFLAGS: -std=c++11
#cgo LDFLAGS: -lstdc++

#include <stdlib.h>
#include "hb.h"

#include "hb-ot.h"

*/
import "C"



-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/3126a3f3-2848-4a2b-9b8e-ddab40ca4b1c%40googlegroups.com.

Reply via email to