01-03-2026, 04:21 PM
Hi, I seem to recall that this was possible in previous versions? Does anyone here know how this could be done in N7? Thanks.....
|
Compile an n7 file from the windows command line?
|
|
01-03-2026, 04:21 PM
Hi, I seem to recall that this was possible in previous versions? Does anyone here know how this could be done in N7? Thanks.....
(01-03-2026, 04:21 PM)kevin Wrote: Hi, I seem to recall that this was possible in previous versions? Does anyone here know how this could be done in N7? Thanks..... Code: n7.exe filename.n7 [win32] [dbg] [mem<bytes>]The win32, dbg and mem You don't need to be in the n7 folder for things to work, I just tried compiling ned.n7 from my home folder, and it worked fine. Are you trying to use the compiler from another editor, perhaps? It should be possible ![]() When you use 'include' in your source code, the compiler first looks next to your source file for the file you wish to include. If it doesn't exist there, he looks in the lib folder next to n7.exe. But that, of course, goes when you compile from ned too.
01-04-2026, 12:45 PM
Many thanks Marcus, this works a treat. I'm not looking to use a different editor (I'm very happy with NED), just knocking some ideas about - I suspect that nothing will come from it, but it's fun playing around in the command line - it reminds me of many hours working with DOS 30 years ago
01-15-2026, 10:34 PM
What do you mean by this [win32] [dbg] [mem ].
You can give a complete example of how to use all the commands from the console I do want to use another editor because the naalaa one doesn't have a slash to be able to scroll horizontally, and when there is a lot of code it is uncomfortable to work. (01-15-2026, 10:34 PM)aliensoldier Wrote: What do you mean by this [win32] [dbg] [mem ]. Let's say the name of the file you want to compile is game.n7. If you want it to run without a console window, you can either add "#win32" in the source code or add "win32" when compiling. If you want extra debug info when the program is running, you can add "#dbg" in the source code or "dbg" when compiling. You most likely won't need to care about the mem flag. So to compile game.n7 without a console window: n7.exe game.n7 win32
01-17-2026, 03:08 PM
(01-16-2026, 04:49 PM)Marcus Wrote:(01-15-2026, 10:34 PM)aliensoldier Wrote: What do you mean by this [win32] [dbg] [mem ]. Thank you Marcus, now it has been clear to me.
|
|
« Next Oldest | Next Newest »
|