Static linked library
Posted: Wed Oct 30, 2013 2:16 am
Is there anyway to create a static linked library (.a) or convert a dynamic library (.so) to static in PB x86?
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
Structure MYSTRUCTURE
StringVariableA.s
StringVariableB.s
IntegerVariableA.i
FloatVariableA.f
EndStructure
ProcedureDLL AttachProcess(Instance)
;this is an array of the structure
Global Dim TORETURN.MYSTRUCTURE(300)
EndProcedure
ProcedureDLL MyFunction()
For x = 0 To 300
TORETURN(x)\StringVariableA = "StringA " + Str(x)
TORETURN(x)\StringVariableB = "StringB " + Str(x)
TORETURN(x)\IntegerVariableA = x
TORETURN(x)\FloatVariableA = x + 0.5
Next x
ProcedureReturn @TORETURN()
EndProcedure