Change exe name to follow the module of the main. Detect missing / multiple main functions.

This commit is contained in:
Christoffer Lerno
2022-08-10 01:14:07 +02:00
parent ebd7611164
commit 3eee9ddc06
5 changed files with 58 additions and 20 deletions

View File

@@ -234,7 +234,9 @@ Then run
c3c compile main.c3
```
The generated binary will be called `a.out`.
The generated binary will by default be named after the module that contains the main
function. In our case that is `hello_world`, so the resulting binary will be
called `hello_world` or `hello_world.exe`depending on platform.
### Compiling