I want to usego sdk on a c++ project. But i am in a problem, the problem is mainly like this. I am running a go program using a c function, the code can be simplified to below.
package main
// #include <stdio.h>
// #include <stdlib.h>
/*
void print() {
printf("just for test");
}
*/
import "C"
func main() {
C.print()
}
But the result is none, there is no output. Who can tell what's the problem? Thanks very much!