It is currently Sat Jul 04, 2020 3:22 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: little problem
PostPosted: Mon Jan 05, 2004 2:00 pm 
Offline
User
User

Joined: Mon May 05, 2003 3:53 pm
Posts: 28
Location: Italy
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:
#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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jan 05, 2004 2:27 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 16, 2003 3:47 pm
Posts: 1311
Location: England
The code runs fine on Windows, so it looks like the you've found a bug in the Linux version.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jan 05, 2004 6:15 pm 
Offline
Administrator
Administrator

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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Jun 12, 2004 9:26 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14065
Location: France
Fixed. For the next version.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye