Page 8 of 42

Re: PureBasic 6.00 Alpha 2 released !

Posted: Sun Jun 20, 2021 3:40 pm
by coffee
Hi,

I tried the A 2 release and get an POLINK: fatal error: File not found: 'C:\Program.obj'

this happens for all may files that I try to compile - with or without debug.
Win10 current x64. I don't have Pelles C, but Visual Studio 2019 installed.
Any help possible?

Re: PureBasic 6.00 Alpha 2 released !

Posted: Sun Jun 20, 2021 4:06 pm
by HeX0R
Little John wrote: Sat Jun 19, 2021 4:30 pm Thank you!
However, this is unnecessarily cumbersome.
There should be a built-in compiler option, which allows to choose between ASM backend and C backend.
Don't forget that it is still in alpha stage, but I second that, the installation should make both compilers available out of the box.

Re: PureBasic 6.00 Alpha 2 released !

Posted: Sun Jun 20, 2021 5:10 pm
by Little John
Alpha stage is a good time to make suggestions for improvement, isn't it? :-)

Re: PureBasic 6.00 Alpha 2 released !

Posted: Sun Jun 20, 2021 5:30 pm
by skinkairewalker
will support class libraries in C++?

I've been trying to use SteamWorks_SDK DLLs directly with PB for a while without having to create a procedural DLL in C++ so that I can use it in PB

Re: PureBasic 6.00 Alpha 2 released !

Posted: Mon Jun 21, 2021 5:00 am
by akee
Thanks Fred.

Re: PureBasic 6.00 Alpha 2 released !

Posted: Mon Jun 21, 2021 3:36 pm
by Axolotl
coffee wrote: Sun Jun 20, 2021 3:40 pm Hi,

I tried the A 2 release and get an POLINK: fatal error: File not found: 'C:\Program.obj'

this happens for all may files that I try to compile - with or without debug.
Win10 current x64. I don't have Pelles C, but Visual Studio 2019 installed.
Any help possible?
Same here with this sample...

Code: Select all

If OpenWindow(0, 0, 0, 300, 30, "Position of the mouse on the desktop", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  TextGadget(0, 10, 6, 200, 20, "")
  AddWindowTimer(0, 0, 10) ; Timeout = 10 ms
  Repeat
    Event = WaitWindowEvent()
    If Event = #PB_Event_Timer 
      SetGadgetText(0, "Coordinates: " + Str(DesktopMouseX()) + "," + Str(DesktopMouseY()))  
    EndIf
  Until Event = #PB_Event_CloseWindow
EndIf
#1: Added directory of PB compilers to PATH does not help so far. (with double check and restart of PB-IDE)
#2: Issue is (seems to be) fixed viewtopic.php?f=43&t=77462

Re: PureBasic 6.00 Alpha 2 released !

Posted: Mon Jun 21, 2021 4:47 pm
by DoubleDutch
This is already reported in bugs, I'm sure @fred has sorted it for alpha 3.

Re: PureBasic 6.00 Alpha 2 released !

Posted: Mon Jun 21, 2021 5:18 pm
by spacebuddy
I am getting this error in A 2 release

POLINK: fatal error: File not found: 'C:\Program.obj'

How to continue to test?

Re: PureBasic 6.00 Alpha 2 released !

Posted: Mon Jun 21, 2021 5:34 pm
by mk-soft
@spacebuddy

Link: viewtopic.php?p=571825#p571825

Please search forum

Re: PureBasic 6.00 Alpha 2 released !

Posted: Mon Jun 21, 2021 6:33 pm
by skywalk
Is PB v6 ASM really an alpha?
Or is it just the C compile option?
Curious how much risk going with v6 ASM output.

Re: PureBasic 6.00 Alpha 2 released !

Posted: Wed Jun 23, 2021 10:22 am
by Fred
It should be as stable the 5.73 but common code has been modified, so don't use it in production (it doesn't bring anything new anyway).

Re: PureBasic 6.00 Alpha 2 released !

Posted: Wed Jun 23, 2021 10:36 am
by Saki
A good friend told me that he can't compile his really huge source with the 6.00 ASM.
But I can not test it myself

Re: PureBasic 6.00 Alpha 2 released !

Posted: Wed Jun 23, 2021 3:01 pm
by jacdelad
Tried to compile some programs, but none worked. Error is surely on my side and I will try to fix it myself.

However, the first lopost mentioned that labels don't work in data sections. I'm using a ton of files that I include in data sections and they obviously need labels to be addressed. Is there another method that works with the c backend?

Re: PureBasic 6.00 Alpha 2 released !

Posted: Wed Jun 23, 2021 3:34 pm
by STARGĂ…TE
jacdelad wrote: Wed Jun 23, 2021 3:01 pm However, the first lopost mentioned that labels don't work in data sections. I'm using a ton of files that I include in data sections and they obviously need labels to be addressed. Is there another method that works with the c backend?
You missunderstand this limitation. It is also in the c-backend allowed to use labels in a DataSection, but you can not use it as a pointer in the data section.

Allowed:

Code: Select all

DataSection
	Label:
	Data.i 1, 2, 3
Not allowed:

Code: Select all

DataSection
	Marker1:
	Data.i 1,2, 3
	Marker2:
	Data.i 4, 5, 6
	Label:
	Data.i ?Marker1, ?Marker2 ; << not allowed in C	

Re: PureBasic 6.00 Alpha 2 released !

Posted: Wed Jun 23, 2021 9:55 pm
by BarryG
I include a lot of icons in my app with the includes inside a DataSection like this:

Code: Select all

Global Catch_Img_Wrap=ImageID(CatchImage(#PB_Any,?Img_Wrap))

DataSection
[...]
Img_Wrap: : IncludeBinary "Wrap.ico"
[...]
EndDataSection
Will this work with the new C backend? I can't test because my app won't compile with it.