In the "Compiler Options" for any source there's a "Main source file" setting that will be compiled instead of the current source, which works great.
My request is somewhat similar: the main preferences of the IDE (under "Compiler") could have a setting called "Main IncludeFile" which the user can leave blank for no IncludeFile, or specify the path to one. Then whenever a compilation starts, this IncludeFile is silently be included at the top of the source, or ignored if this field is empty.
This means we can have our own "libraries" of code that will immediately be usable in any new apps we start, without having to manually IncludeFile it. The user can then choose to edit that IncludeFile to their heart's content, such as inluding other files in it themselves.
Reason for this request -> viewtopic.php?p=587985#p587985
Thanks for considering!
Main IncludeFile when compiling
Re: Main IncludeFile when compiling
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
- StarBootics
- Addict
- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: Main IncludeFile when compiling
What about to add a toolbox system like Matlab has for example ? From my perspective this would be absolutely nice to have. You just need to tell the compiler the root directory for where to look for non-compiled libraries (modules, procedures, etc.) somewhere in the IDE preference. When you compile a program the compiler will scan the specified directory for missing Modules, procedures, etc. and if he can't find something just tell the programmer like the compiler work right now.
Something should be added to manage the non-compiled libraries. Whatever it is +1
Best regards
StarBootics
Something should be added to manage the non-compiled libraries. Whatever it is +1
Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !