https://github.com/siruku6/learning_c_lang
https://github.com/siruku6/learning_c_lang
c cpp docker docker-compose
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/siruku6/learning_c_lang
- Owner: siruku6
- License: mit
- Created: 2023-04-06T11:56:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-12-17T09:23:17.000Z (over 2 years ago)
- Last Synced: 2026-01-03T22:43:42.557Z (6 months ago)
- Topics: c, cpp, docker, docker-compose
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Build Dev environment
```bash
$ docker compose build
$ docker compose run c_base bash
```
# How to compile and run
## *.c file
```bash
# gcc src/main.c -o app/main.o -lm
# ./app/main.o
```
https://stackoverflow.com/questions/10409032/why-am-i-getting-undefined-reference-to-sqrt-error-even-though-i-include-math
## *.cpp file
```bash
# g++ src/main.cpp -o app/main.o -lm
# ./app/main.o
```