User Tools

Site Tools


link_specify_class_link_into_project_.htm
Navigation:  Language Reference > 5 - Declaration Attributes > Variable and Entity Attributes >====== LINK (specify CLASS link into project) ====== Previous pageReturn to chapter overviewNext page

LINK( linkfile, [ flag ] )

blk2blue.jpg

LINK Names a file to add to the link list for the current project.
Linkfile A string constant naming an file (without an extension .OBJ is assumed) to link into the project. Normally, this would be the same as the parameter to the MODULE attribute (which by default is a source file), but may explicitly name a .LIB or .OBJ file.
Flag A numeric constant, equate, or Project system define which specifies the attribute as active or not. If the flag is zero or omitted, the attribute is not active, just as if it were not present. If the flag is any value other than zero, the attribute is active.

A LINK attribute of a CLASS structure names a linkfile to add to the compiler's link list for the project. LINK is only valid on a CLASS structure.

Example:

OneClass CLASS,MODULE('OneClass'),LINK('OneClass',1)     !Link in OneClass.OBJ

LoadIt     PROCEDURE

ComputeIt  PROCEDURE

        END

StandardErrorLogClass CLASS,TYPE,IMPLEMENTS(ErrorLogInterface),|

     MODULE('ABERROR.CLW'),LINK('ABERROR.CLW',_ABCLinkMode_), |

     DLL(_ABCDllMode_)

critSect    &ICriticalSection,PRIVATE

Usage       LONG,PRIVATE

Construct   PROCEDURE

Destruct    PROCEDURE

Open        PROCEDURE(BYTE Force = False),BYTE,PROC,PROTECTED

Close       PROCEDURE(BYTE Force = False),BYTE,PROC,PROTECTED

                     END

See Also:

CLASS

MEMBER

MODULE

link_specify_class_link_into_project_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1