August 2019
Beginner to intermediate
798 pages
17h 2m
English
Now that you have the C code and the Go code, it is time to learn what to do next in order to execute the Go file that calls the C code.
The good news is that you do not need to do anything particularly difficult because all the critical information is contained in the Go file. The only critical thing that you will need to do is compile the C code in order to create a library, which requires the execution of the following commands:
$ ls -l callClib/ total 16 -rw-r--r--@ 1 mtsouk staff 162 Jan 10 09:17 callC.c -rw-r--r--@ 1 mtsouk staff 89 Jan 10 09:17 callC.h $ gcc -c callClib/*.c $ ls -l callC.o -rw-r--r-- 1 mtsouk staff 952 Jan 22 22:03 callC.o $ file callC.o callC.o: Mach-O 64-bit object x86_64 $ /usr/bin/ar rs callC.a ...
Read now
Unlock full access