Page 1 of 1
Notepad ++ Compile Error
Posted: Thu May 30, 2019 6:26 pm
by burke_wl
I'm getting the error below while trying to compile the PLC source code. I followed the tech bulletin 294 to configure Notepad++ and I believe I have my folder structure correct for saving files. I was able to get the PLC source code to compile via the windows command prompt. Anyone familiar with this error?
"C:\cnct\compile.cmd" "Centroid-Lathe-Standard-OAK-r2-Axis-Brake-setup2.src"
; about to start a child process: ""C:\cnct\compile.cmd" "Centroid-Lathe-Standard-OAK-r2-Axis-Brake-setup2.src""
CreateProcess() failed with error code 2:
The system cannot find the file specified.
================ READY ================
Re: Notepad ++ Compile Error
Posted: Thu May 30, 2019 9:06 pm
by cnckeith
try compiling without using Notepad ++ and see what happens..
here is link to PLC programming how to video playlist for your reference. the first one goes over setting up Notepad ++
https://www.youtube.com/playlist?list=P ... i2WKIedQlQ
Re: Notepad ++ Compile Error
Posted: Thu May 30, 2019 9:07 pm
by tblough
Well, it states that it cannot find "compile.cmd" in the cnct directory. Perhaps you were trying to run mpucomp.exe?
Re: Notepad ++ Compile Error
Posted: Fri May 31, 2019 10:12 pm
by burke_wl
I was able to get the source code file to compile using the windows command prompt.
Re: Notepad ++ Compile Error
Posted: Fri May 31, 2019 10:23 pm
by burke_wl
tblough wrote: ↑Thu May 30, 2019 9:07 pm
Well, it states that it cannot find "compile.cmd" in the cnct directory. Perhaps you were trying to run mpucomp.exe?
Here are a few screenshots that show the file locations and names. Also a screenshot of the Compile Execute command from Notepad++ which was copied and pasted from tech bulletin 294.
Re: Notepad ++ Compile Error
Posted: Fri May 31, 2019 10:55 pm
by tblough
Rename "compile.cmd" to "compile.bat" and update the execute command to reflect that as well.
Re: Notepad ++ Compile Error
Posted: Sat Jun 01, 2019 9:13 am
by burke_wl
tblough wrote: ↑Fri May 31, 2019 10:55 pm
Rename "compile.cmd" to "compile.bat" and update the execute command to reflect that as well.
Hi Tom,
I tried to relabel the compile.cmd file to compile.bat and updated the execute command and got the same error as before.
Thanks,
Wes
Re: Notepad ++ Compile Error
Posted: Sat Jun 01, 2019 12:22 pm
by tblough
Then the only other thing is that compile.bat is not in CURRENT_DIRECTORY.