PureBasic 6.00 released !
-
- Addict
- Posts: 1518
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PureBasic 6.00 Alpha 1 released !
In this alpha version is the /PREPROCESS command not supported?
Re: PureBasic 6.00 Alpha 1 released !
Thanks Fed & PureBasic team... Looking forward to the release.
Last edited by akee on Wed May 19, 2021 7:32 pm, edited 1 time in total.
Re: PureBasic 6.00 Alpha 1 released !
I managed to compile one test program successfully, but now I keep getting the following error message:
Any ideas? I did select the C compiler in the dropdown.
EDIT: Resolved! Entirely my mistake...
Code: Select all
---------------------------
PureBasic
---------------------------
The compiler isn't loaded yet... please try again.
---------------------------
OK
---------------------------
EDIT: Resolved! Entirely my mistake...
Last edited by firace on Wed May 19, 2021 7:18 pm, edited 1 time in total.
Re: PureBasic 6.00 Alpha 1 released !
I did some short tests... and wow amazing ... Mostly works until now fine with Wine and Linux (ASM and C backend Compiler)
I hope the Linux Version is also soon ready.

I hope the Linux Version is also soon ready.
Sys 1 HW: Ryzen 7 3700X, 32GB RAM, RX 5700, NVME 512GiB And SATA 2TiB OS: openSUSE Tumbleweed x64
Sys 2 HW: 7 1700X, 16GB RAM, R7 360, SSD 480GiB & 1TiB OS: "
Sys 3 NB: HP envy X360, 5 2500U ,16GB RAM, NVME 256Gib OS: " zus. Win. 10 x64
Sys 2 HW: 7 1700X, 16GB RAM, R7 360, SSD 480GiB & 1TiB OS: "
Sys 3 NB: HP envy X360, 5 2500U ,16GB RAM, NVME 256Gib OS: " zus. Win. 10 x64
Re: PureBasic 6.00 Alpha 1 released !
Does this render DataSection useless? (how to access data objects in the DataSection without a label?)Fred wrote: Wed May 19, 2021 10:08 am C Backend limitations:
- No Label address in datasection (?Label)
Re: PureBasic 6.00 Alpha 1 released !
It only this syntax:
Which is not supported
Code: Select all
Data.i ?Label
- StarBootics
- Addict
- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: PureBasic 6.00 Alpha 1 released !
Thank you Fred,
so we can start testing the basic functions early (and spezial function).
so we can start testing the basic functions early (and spezial function).
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
-
- Addict
- Posts: 1518
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PureBasic 6.00 Alpha 1 released !
Many programs have this error when compiling
And this (run with a debugger) Unfortunately, I have not yet managed to get these errors on simple programs and I cannot post an example code on the forum.
Code: Select all
purebasic.c:3783:1: warning: implicit declaration of function 'SYS_FastAllocateStringFree4'; did you mean 'SYS_FastAllocateString4'? [-Wimplicit-function-declaration]
Code: Select all
purebasic.c:21893:2: error: unknown type name 'PUSH'
PUSH esp
^~~~
purebasic.c:21894:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PUSH'
PUSH dword PM_386
^~~~
...
^~~~~~~~~~~~~~~~~~~~~~~~
-
- Addict
- Posts: 1518
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PureBasic 6.00 Alpha 1 released !
Code Result This does not work. Attribute does not apply to procedure!
Code: Select all
!__attribute__((optimize("-Ofast")))
Procedure t()
EndProcedure
t()
Code: Select all
// Procedure t()
static integer f_t() {
integer r=0;
// EndProcedure
end:
return r;
}
//
...
...
...
...
//
void ___chkstk_ms(integer a) { return; }
int __stdcall WinMain(void *instance, void *prevInstance, void *cmdLine, int cmdShow) {
PB_Instance = GetModuleHandleW(0);
PB_MemoryBase = HeapCreate(0,4096,0);
// !__attribute__((optimize("-Ofast")))
__attribute__((optimize("-Ofast")))
// t()
integer rr0=f_t();
SYS_Quit();
}
Re: PureBasic 6.00 Alpha 1 released !
I misinterpreted it the same way... but it's actually perfectly described in the text.

Thanx Fred and team.
Proud supporter of PB! * Musician * C64/6502 Freak
Re: PureBasic 6.00 Alpha 1 released !
Well I'm still confused about it - how to access data in DataSection when there's no ?label ?oreopa wrote: Thu May 20, 2021 12:44 am I misinterpreted it the same way... but it's actually perfectly described in the text.
- StarBootics
- Addict
- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: PureBasic 6.00 Alpha 1 released !
If I understand it correctly, something like this is not supported yet :
Why you would like to do that ? I have no idea !
Best regards
StarBootics
Code: Select all
DataSection
VTable:
Data.i ?Procedures ; <- This thing here
Procedures:
Data.i @Ceci(), @Cela()
EndDataSection
Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
Re: PureBasic 6.00 Alpha 1 released !
You can still use ?Label to get the address of a label: in a data section.
But you can not use (at the moment) such syntax "?Label" in a data section itself.
But you can not use (at the moment) such syntax "?Label" in a data section itself.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: PureBasic 6.00 Alpha 1 released !
Ahh ok thankyou for clarifying, that makes sense. I think I've only used ?Label within a DataSection once anyway (for a jump table, which isn't important), so it seems 99% of my source code that uses DataSection should still work fine - cool! sorry to Fred for my misunderstandingSTARGÅTE wrote: Thu May 20, 2021 12:59 am You can still use ?Label to get the address of a label: in a data section.
But you can not use (at the moment) such syntax "?Label" in a data section itself.
Last edited by Keya on Thu May 20, 2021 1:29 am, edited 1 time in total.