Why doesn't this command work?
gccocc src/main.c src/todo.c src/gui.c src/utils/search.c src/app.res -o bin/todo.exe ^
-mwindows ^
-lcomctl32 ^
-luxtheme ^
-Os ^
-s
https://github.com/Efeckc17/simple-todo-c/discussions/22
gccocc (OrangeC) Version 6.73.1
Copyright (C) LADSoft 2006-2025
src/main.c
Warning src\todo.h(14): Currently pragma comment(linker) is unsupported.
src/todo.c
Warning src\todo.h(14): Currently pragma comment(linker) is unsupported.
src/gui.c
Warning src\todo.h(14): Currently pragma comment(linker) is unsupported.
src/utils/search.c
Warning src\utils\..\todo.h(14): Currently pragma comment(linker) is unsupported.
Error: Input file 'todo.exe' does not exist.
1 Errors, 0 Warnings
Errors encountered, not creating output file
ok this project takes a little bit of extra work... the batch file makes a .\bin directory and also compiles src\app.rc into srcc\app.res. I think the problems you were seeing with occ is first you need to make the bin directory yourself and second you need to compile src\app.rc with orc. Apparently ORC and WINDRES are not compatible for some reason.... if you want to write an issue about that I will look at it at some point.
you can also specify the RC file on the occ commandline (instead of the res file) and the res file will be created automatically....
Once I did those two things it compiled with occ ok.
the problem with the gccocc build is again you need the bin directory and you need app.rc to be compiled into app.res. But beyond that there is a bug in the gccocc app; it won't allow a space in this '-o bin\todo.exe'. I've fixed that and will push it after I evaluate the problems with compiling muon.