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

aurel

my main problem with FB is suspicious pointers...i don't know is that
because i am using FB_Poseidon to or just because FB complain about that
on Windows, i have FB installed on Linux partition but due old win7 crush when i istalled
new win7 i lost GRUB boot loader, on that partition is Q4OS Trinity

btw..i also have code editor for FB(AurelEdit_FB) ..it is my own work
but is Windows only..but work with wine without problem i even
compiled few oxygenbasic(created in FB - ver A043) programs using wine.
https://www.freebasic.net/forum/viewtopic.php?t=31888
WOULD YOU LIKE TO KNOW MORE?
basic4us.epizy.com/forum/index.php

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