I need to access a variable (DefTerm,rovalue and greet) and a function (driv) under .cpp files
I am using cgo for first and not sure about the syntax.
I wrote the Go program to access the variable and function from .go file
But I get the error as " fatal error: ‘stdlib.h’ file not found".
package main
// #include <stdio.h>
// #include <errno.h>
import “C”import main/cdir
dterm = cdir.DefTerm
func test() {
cvalue = cdir.World(“dd”,“@cyu”)}
How to write the efficient code. Thanks