Liste des Groupes | Revenir à ca embedded |
On 2025-03-18, David Brown <david.brown@hesbynett.no> wrote:I have several projects where C code is generated automatically (such as with a Python script that turns an image file into a const uint8_t array).Install msys2 (and the mingw-64 version of gcc, if you want a nativeI have seen problems when using tools that are build during the compile
compiler too). Make sure the relevant "bin" directory is on your path.
Then gnu make will work perfectly, along with all the little *nix
utilities such as touch, cp, mv, sed, etc., that makefiles sometimes use.
>
The only time I have seen problems with makefiles on Windows is when
using ancient partial make implementations, such as from Borland, along
with more advanced modern makefiles, or when someone mistakenly uses
MS's not-make "nmake" program instead of "make".
proess, used to generate further C code.
I would suggest using WSL instead of msys2. I have not used it forI would not suggest WSL unless you are trying to re-create a full Linux environment - since that is what WSL is. It is a virtual machine with Linux. If you have a complex setup with *nix features like soft links, or filenames with Windows-hostile characters, or want to use /dev/urandom to generate random data automatically in your build process, then use WSL. (Or just switch to Linux.)
cross-compiling, but it works fine (except for file access performance) for
my documentation process, which needs commandline pdf modification tools
plus latex.
I'm sure you can guess the correct way to handle that - don't leave files in the wrong places :-)A good makefile picks up the new files automatically and handles all theI don't do that anymore - wildcards in makefiles can lead to all kinds of
dependencies, so often all you need is a new "make -j".
strange behaviour due to files that are left/placed somewhere but are not
really needed.
I prefer to list the files I want compiled - it is not thatIn a project of over 500 files in 70 directories, it's a lot more work than using wildcards and not keeping old unneeded files mixed in with source files.
much work.
Les messages affichés proviennent d'usenet.