Comment by iasay
3 years ago
This is wrong.
It belongs in the linker and you can pull the symbol it creates in with extern. I’ve been doing this for about 25 years.
3 years ago
This is wrong.
It belongs in the linker and you can pull the symbol it creates in with extern. I’ve been doing this for about 25 years.
...and now your solution is non-portable and as a cross-platform developer you need to implement N different build scripts. This is far more elegant.
No C toolchain is portable!
If that's a problem, use Go or another higher level language.
I guess the programs that I write which work on Mac / Windows / Linux / Wasm / i686 / amd64 / armv7 / aarch64 are just a bad dream I had
1 reply →
Isn't one of the supposed advantages of C that it works on many platforms?
3 replies →