Call netlinx compiler from command line?
dnahman
Posts: 28
Hi there,
Does anybody know if it is possible to call the netlinx compiler and source upload tool from a dos shell rather than using the netlinx IDE?
thanks
david
Does anybody know if it is possible to call the netlinx compiler and source upload tool from a dos shell rather than using the netlinx IDE?
thanks
david
0
Comments
The NetLinx compiler is found in Program Files/Common Files/AMXShare/COM. It's named nIrc.exe. You can run that from a command line and supply the source parameters. Running it without parameters will supply the syntax.
If you poke around in that folder, you may find the upload module, but it doesn't seem to be any of the executables, you will have to mess around with the DLL's or OCX's.
I just found that. It looks like a good start. I'm trying to figure out the proper command line or environment variables to make it work. Running the compiler with only my source file on the command line gives the response:
L:\src\amx\LDACtheatres>"c:\program files\common files\amxshare\com\nlrc" "Theatres.axs"
---- Starting NetLinx Compile - Version[2.2.0.112] [06-20-2006 08:47:47] ----
WARNING: Theatres.axs(0)The pre-processor is unable to find the directory in the Library path. Ignoring directory and continuing...
ERROR: Theatres.axs(0)NetLinx Pre-Processor Error: Syntax error
I'll keep on poking. . .
thanks
david
The only syntax hints the command line program gives me is for the source code axs file, and the output filename for the compilation log. Doing a string search of nlrc.exe I don't see any command line options mentioned other than source and output log. . . I also don't see anything that looks like an environment variable name. I wonder how amx passes this info from the IDE. . .
thanks
david
You need the -I and -L parameters.
Paul
Is anyone actually using anything other than NS?
No. What's the point? I can see using a different editor, but why muck around with the toolchain?