An open API service indexing awesome lists of open source software.

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

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
```