V
V
Vladimir Grabko2016-07-13 23:33:40
go
Vladimir Grabko, 2016-07-13 23:33:40

How to use C++ in Go?

let's say there is a function in the gui_main.c file

int main(int argc, char **argv)
{
  return client_main(argc, argv);
}

How can I call this function from Go?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#algooptimize #bottize, 2016-07-14
@VGrabko

stackoverflow.com/questions/1713214/how-to-use-c-in-go
Good luck.
By the way, if you need to call the main function (exe entry point) and get the return code, then just create a process and get its return code upon completion.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question