Page 1 of 1

little problem

Posted: Mon Jan 05, 2004 2:00 pm
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

Posted: Mon Jan 05, 2004 2:27 pm
by GedB
The code runs fine on Windows, so it looks like the you've found a bug in the Linux version.

Posted: Mon Jan 05, 2004 6:15 pm
by Fred
Very true, the Round() function is missing. I will correct it, thanks for the report !

Posted: Sat Jun 12, 2004 9:26 pm
by Fred
Fixed. For the next version.