News:

Welcome to RetroCoders Community

Main Menu

how to set up FreeBASIC for compiling running and coding

Started by ron77, Sep 11, 2022, 11:42 AM

Previous topic - Next topic

stigma

Ron77 nppexec script code compiles the .bas file but doesn't run it :/

Here is a better script that compiles and runs FreeBASIC code:

npp_save

CD $(CURRENT_DIRECTORY)

"full-path-to-fbc.exe" -s console -gen gcc -Wc -Ofast -Wc -Wno-maybe-uninitialized -exx -w all "$(FILE_NAME)"

if "$(EXITCODE)" == "0" then
   cmd /c start /wait cmd " /c $(NAME_PART).exe " & pause
endif