Page 5 of 42

Re: PureBasic 6.00 Alpha 1 released !

Posted: Mon May 24, 2021 12:36 am
by Demivec
My apologies, I know these comments can probably all be considered as off-topic but I think it is worth noting.
Tenaja wrote: Sun May 23, 2021 4:36 pm
Saki wrote: Sun May 23, 2021 2:43 pm I don't think it's our business to discuss how to market or market a product,
that we didn't create ourselves.
I don't agree. This is the only one remaining software I've purchased with "free updates for life." Every other one I've purchased has gone belly-up, or abandoned updates. And no, I would not say that pb was the best of all of the software.
IMHO I think it is solely Fantasy Software's determination how to market its products, and I recognize there is more than one way to do so. In addition IMHO individuals are free to donate funds (which I highly encourage if one is able to do so) as a goodwill offering or as a desire to speed or help development but they should be not feel compelled to do so or shamed for not doing so.

@Tenaja: I did want to share that I purchased life time updates for a text editor for a one-time fee based on the excellent experience I've had with my purchase of a use license for PureBasic 16 years ago and counting. The other software I had been forced to pay upgrade or an entirely new purchase price every 4 or 5 years whenever it's tally of improvements reached a big enough difference that I didn't want to be without the new features. When a life time of updates was finally made possible it was an easy decision based on my respect for the software and my experience with PureBasic. Like PureBasic, this other software included continuous updates for a variety of things of various levels of usefulness. It's nice to know that you can always have the most up-to-date version without having to continuously check your bank account. I think PureBasic's success and longevity thus far been at least in part due to this early decision by Fred.

Re: PureBasic 6.00 Alpha 1 released !

Posted: Mon May 24, 2021 11:23 am
by StarBootics
Hello everyone,

@Fred or @Freak : Do you have an estimate about when PB V6.00 Alpha x will released for Linux OS ?

I can't wait to try it out.

Thanks
StarBootics

Re: PureBasic 6.00 Alpha 1 released !

Posted: Mon May 24, 2021 1:34 pm
by the.weavster
It seems a very solid Alpha, everything I've recompiled so far has worked perfectly :D
Fred wrote: Wed May 19, 2021 10:08 am

Code: Select all

- No DLL creation support (in progress)
Any chance of that making Alpha 2?

Re: PureBasic 6.00 Alpha 1 released !

Posted: Mon May 24, 2021 6:40 pm
by highend
Including modules isn't supported (yet)?

If I include one module with just a single declared function I get this:

Code: Select all

---------------------------
PureBasic - Assembler error
---------------------------
purebasic.c: In function 'own$f_getownfilename':

purebasic.c:392:1: error: 'PB_DEBUGGER_LineNumber' undeclared (first use in this function); did you mean 'PB_DEBUGGER_LabelBank'?

 PB_DEBUGGER_LineNumber=33554464;

 ^~~~~~~~~~~~~~~~~~~~~~

 PB_DEBUGGER_LabelBank

purebasic.c:392:1: note: each undeclared identifier is reported only once for each function it appears in


---------------------------
OK   
---------------------------


Re: PureBasic 6.00 Alpha 1 released !

Posted: Mon May 24, 2021 6:58 pm
by davido
@jack,
Thank you for your comment.
Looks like I don't know what I am doing! :oops:
I'll try again.
I take no offence as there was none given. I only offer my thanks. :D

Re: PureBasic 6.00 Alpha 1 released !

Posted: Mon May 24, 2021 7:16 pm
by djes
Do you realize that you just open C coding to billions of users without the hassle to install a Godzilla like IDE ?

Now, let do the same with Rust and you're in pole position.

Congrats, and thank you ! 8)

Re: PureBasic 6.00 Alpha 1 released !

Posted: Mon May 24, 2021 9:17 pm
by cas
djes wrote: Mon May 24, 2021 7:16 pm Now, let do the same with Rust and you're in pole position.
There is no point in doing that because you can only get unsafe rust code. But, if you really want that, you can do it already. Get c code with /commented flag and then run it through c to rust transpiler (for example https://c2rust.com/).

Re: PureBasic 6.00 Alpha 1 released !

Posted: Mon May 24, 2021 11:15 pm
by djes
cas wrote: Mon May 24, 2021 9:17 pm
djes wrote: Mon May 24, 2021 7:16 pm Now, let do the same with Rust and you're in pole position.
There is no point in doing that because you can only get unsafe rust code. But, if you really want that, you can do it already. Get c code with /commented flag and then run it through c to rust transpiler (for example https://c2rust.com/).
Crusty at least. Thank you cas

Re: PureBasic 6.00 Alpha /REASM POLINK errors

Posted: Tue May 25, 2021 2:49 pm
by juergenkulow

Code: Select all

F:\PureBasic6Alpha\Compilers>pbcompilerc H:\pb2_21\myfunc2.pb /REASM /CONSOLE

******************************************
PureBasic 6.00 Alpha 1 - C Backend (Windows - x64)
******************************************

Loading 'C' subsystem
Compiling H:\pb2_21\myfunc2.pb
Loading external libraries...
ReAssembling source code...
Creating and launching executable.
Error: Linker
POLINK: error: Unresolved external symbol 'PB_FreeMemorys'.
POLINK: error: Unresolved external symbol 'PB_InitMemory'.
POLINK: error: Unresolved external symbol 'PB_OpenConsole'.
POLINK: error: Unresolved external symbol 'PB_Str'.
POLINK: error: Unresolved external symbol 'PB_Input'.
POLINK: error: Unresolved external symbol 'PB_PrintN'.
POLINK: fatal error: 6 unresolved external(s).

Is the polink command missing the files Console.lib, String.lib, Memory.lib, kernel32.lib,
PureBasic.res and the /ENTRY:pb_main?

Code: Select all

; Demo for modified /REASM
Procedure.q myfunc()
  ProcedureReturn 4711
EndProcedure

OpenConsole()
PrintN(Str(myfunc()))
Input()
End 

Code: Select all

F:\PureBasic6Alpha\Compilers>pbcompilerc H:\pb2_21\myfunc2.pb /COMMENTED /CONSOL
E

******************************************
PureBasic 6.00 Alpha 1 - C Backend (Windows - x64)
******************************************

Loading 'C' subsystem
Compiling H:\pb2_21\myfunc2.pb
Loading external libraries...
Starting compilation...
9 lines processed.
Creating and launching executable.

- Feel the ..PuRe.. Power -

Re: PureBasic 6.00 Alpha 1 released ! Bug on iPDF

Posted: Tue May 25, 2021 8:33 pm
by tola
Hello,

I use a module PurePdfModule.

When i compile with pbcompilerc.exe i have a syntax error at line "MOV Eax,value".

Code: Select all

Procedure.l ipdf_EndianL(value.l)        ; Rescator : http://forums.purebasic.com/english/viewtopic.php?p=84270&sid=7f3f06eae02ad44b303655fb722bb0f0#p84270
    EnableASM
    MOV Eax,value      <-------------- The error is here !
    BSWAP Eax
    DisableASM
    ProcedureReturn
  EndProcedure
  
With pbcompiler.exe, my project compile normally.

Thanks a lot.

Christophe

Re: PureBasic 6.00 Alpha 1 released !

Posted: Wed May 26, 2021 7:57 am
by Saki
#tola This is not supported with the C Backend

Make sure that the purifier is ever switched off on the Alpha 1,
otherwise there are not localizable crashes.

Re: PureBasic 6.00 Alpha 1 released !

Posted: Fri May 28, 2021 11:20 am
by Saki
Is there a compiler constant to check with which compiler is compiled ?

Re: PureBasic 6.00 Alpha 1 released !

Posted: Fri May 28, 2021 11:52 am
by cas

Code: Select all

CompilerIf #PB_Compiler_Processor=#PB_Processor_C
  Debug "c backend"
CompilerElse
  Debug "fasm backend"
CompilerEndIf

Re: PureBasic 6.00 Alpha 1 released !

Posted: Fri May 28, 2021 1:30 pm
by kinglestat
PB with C integration?
It's a dream come true.
Thank you guys

Re: PureBasic 6.00 Alpha 1 released !

Posted: Fri May 28, 2021 2:01 pm
by Saki
Many thanks @cas, exactly what I was looking for.