Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compile an n7 file from the windows command line?
#1
Hi, I seem to recall that this was possible in previous versions? Does anyone here know how this could be done in N7? Thanks.....
Reply
#2
(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 flags do the same things as adding #win32, #dbg or, for example, #mem64000000 in the source code.

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 Smile

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.


Attached Files Thumbnail(s)
   
Reply
#3
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 Smile
Reply
#4
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.
Reply
#5
(01-15-2026, 10:34 PM)aliensoldier Wrote: 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.


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

Smile
Reply
#6
(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 ].
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.


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

Smile

Thank you Marcus, now it has been clear to me. Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)