Restored from previous forum. Originally posted by Tomio.
Hello,
I know 2 ways to use libraries with pb:
-DLLs and link dynamic
-collection of procedures and do a "IncludeFile"
Is there a way to link fix?
I mean the objetcs are included at linktime, and only objects which are needed.
I couldn't find the answer neither in the doc nor in the forums.
Thank you../tomio
fix linking
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by fred.
You can use the procedure system and put CompilerIf/EndIf around each procedure and then using a constant than you can put to true or false. Example:
#ML_YouFunc = 1
CompilerIf #ML_YourFunc
Procedure YourFunc()
...
EndProcedure
CompilerEndif
Fred - AlphaSND
You can use the procedure system and put CompilerIf/EndIf around each procedure and then using a constant than you can put to true or false. Example:
#ML_YouFunc = 1
CompilerIf #ML_YourFunc
Procedure YourFunc()
...
EndProcedure
CompilerEndif
Fred - AlphaSND
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm