https://github.com/pasdam/hello-world-c-go
Example of a C++ application using a library written in Go
https://github.com/pasdam/hello-world-c-go
Last synced: 3 months ago
JSON representation
Example of a C++ application using a library written in Go
- Host: GitHub
- URL: https://github.com/pasdam/hello-world-c-go
- Owner: pasdam
- License: gpl-3.0
- Created: 2019-04-27T08:34:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-08T03:57:37.000Z (almost 7 years ago)
- Last Synced: 2025-10-27T10:24:36.312Z (7 months ago)
- Language: Makefile
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hello-world-c-go
Example of a C++ application using a library written in Go.
## Build and run
A simple [Makefile](Makefile) is provided to build and run the application, using a simple command:
```sh
make run
```
This is equivalent to:
```sh
go build -buildmode=c-archive -o build/golib.a main.go
gcc -I build -pthread main.c build/golib.a -o build/test
build/test
```