It is currently Mon Nov 30, 2020 8:58 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Static lib output
PostPosted: Mon Dec 31, 2007 11:37 pm 
Offline
Addict
Addict

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3371
I know that PureBasic outputs a .dll with a import .lib. It would be a great addition if PureBasic could output a static lib.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 31, 2007 11:37 pm 
Offline
Addict
Addict

Joined: Mon May 29, 2006 1:01 am
Posts: 1965
Location: Outback
Yes. Agreed.

_________________
Dare2 cut down to size


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 02, 2008 1:08 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 12, 2005 3:35 am
Posts: 803
Location: Germany(Hessen)
Agreed, too.

_________________
German blog about IT and programming
German PB forums


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 02, 2008 9:34 am 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2004 4:28 pm
Posts: 406
Location: Cologne/GER
The final User of your static lib would be forced to link (in VC++ i.e.) with the needed PB libs where commands have been used from (like Window, 2DDrawing etc). But as the Purebasic Libs are protected thats not possible.
Maybe that could be handled by an internal progress of PB where those needed PB library symbols would be linked/appended directly before outputting the final static lib.

_________________
Check out OOP support for PB here!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 02, 2008 10:08 am 
Offline
Addict
Addict

Joined: Mon May 29, 2006 1:01 am
Posts: 1965
Location: Outback
Technicalities, technicalities! :)

_________________
Dare2 cut down to size


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 02, 2008 10:34 am 
Offline
Addict
Addict
User avatar

Joined: Thu Apr 05, 2007 12:15 am
Posts: 894
Location: Nuremberg, Germany
+1

@inc
Maybe an option if you want to compile the lib for PureBasic or
other compilers?

_________________
Windows 7 & PureBasic 4.4


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 02, 2008 12:05 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2004 4:28 pm
Posts: 406
Location: Cologne/GER
milan1612 wrote:
Maybe an option if you want to compile the lib for PureBasic
Could already exactly be done via -> Tailbite :-)
Quote:
or other compilers?
yep, as told, then the PB library symbols have to be embedded in the resulting static lib. Else VC++ compiles would be end up in linking errors.

_________________
Check out OOP support for PB here!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 02, 2008 10:07 pm 
Offline
Addict
Addict

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3371
inc. wrote:
milan1612 wrote:
Maybe an option if you want to compile the lib for PureBasic
Could already exactly be done via -> Tailbite :-)
Quote:
or other compilers?


Tailbite builds only PureBasic libraries.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 03, 2008 10:12 am 
Offline
Enthusiast
Enthusiast

Joined: Thu May 06, 2004 4:28 pm
Posts: 406
Location: Cologne/GER
Yes and if you would look closer than you will recognise that my statement belongs to one of Milans Ideas:
Quote:
Maybe an option if you want to compile the lib for PureBasic

_________________
Check out OOP support for PB here!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 21, 2008 6:05 am 
Offline
Addict
Addict
User avatar

Joined: Wed Apr 20, 2005 12:48 pm
Posts: 1104
+1 *this would be a really great feature*

_________________
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 21, 2008 4:31 pm 
Offline
Addict
Addict

Joined: Fri Apr 25, 2003 11:10 pm
Posts: 1228
but then you would have the PB command wrapper issue.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 21, 2008 4:45 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Sep 12, 2003 10:40 pm
Posts: 665
Location: Tallahassee, Florida
jack wrote:
but then you would have the PB command wrapper issue.


It wouldnt be all that difficult to decide on a set of limited commands that are allowed to be used in a static lib.

When the "static lib" output option is selected, the compiler will only look for PB libraries in a special folder designed for static lib output. when it encounters a command not allowed in a static lib, it just behaves like the PB demo does "thisprocedure() is not a function array or linked list".

All the win API commands, some math functions, string manipulation could be allowed. it is up to Fred really, but there is a way to do it and be fair to everyone.

_________________
Code:
!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue May 27, 2008 5:21 am 
Offline
Addict
Addict

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3371
I would still love to see this added as a feature for PureBasic. It would be an obvious solution to the inherit problems that exist with TailBite and future compatibility. PureBasic can already export to a DLL but this is not always an acceptable solution.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue May 27, 2008 5:10 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 09, 2004 11:10 am
Posts: 162
Location: Germany
This: http://www.purebasic.fr/english/viewtopic.php?t=31339
looks like a temporary solution...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 28, 2008 1:07 am 
Offline
Addict
Addict

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3371
Dummy wrote:
This: http://www.purebasic.fr/english/viewtopic.php?t=31339
looks like a temporary solution...


Libraries produced by coffIT cannot be used in other languages if they use any function from the PureBasic libraries. It's still a PureBasic-only solution, like TailBite.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 11 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