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
Thanks!
Sergio