little problem

Linux specific forum
talun
User
User
Posts: 28
Joined: Mon May 05, 2003 3:53 pm
Location: Italy

little problem

Post by talun »

Hi,
I need a little help with this simple piece of code that I'm not able to compile with the new Linux version of PB (3.81) and Linux Mandrake 9.0.
The compiling process fails with this message:
**********************************************************
purebasic.o: In function 'main':
purebasic.o(.text+0x74): undefined reference to 'PB_Round'
collect 2: ld returned exit status
**********************************************************

Code: Select all

#WinStyle =   #PB_Window_SystemMenu|#PB_Window_TitleBar|#PB_Window_ScreenCentered|#PB_Window_MinimizeGadget
If OpenWindow(1, 209, 219, 600, 330, #WinStyle, "Test")
	x.f = 123.45
	Result.f = Round(x, 0)
	a$ = StrF(Result)
	MessageRequester("Info..","Result is: " + a$ ,0)

  Repeat
    EventID = WaitWindowEvent()
  Until EventID = #PB_EventCloseWindow  ; If the user has pressed on the close button

End

EndIf
Can anyone help me?

Thanks!

Sergio
User avatar
GedB
Addict
Addict
Posts: 1312
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

The code runs fine on Windows, so it looks like the you've found a bug in the Linux version.
Fred
Administrator
Administrator
Posts: 16686
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Very true, the Round() function is missing. I will correct it, thanks for the report !
Fred
Administrator
Administrator
Posts: 16686
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Fixed. For the next version.
Post Reply