fix linking

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Tomio.

Fred,

thank you for the hint. I'll do this.

../tomio
Post Reply