Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - #pragma includelib library inclusion control http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 #pragma INCLUDELIB  Library inclusion control
------------------------------------------------------------------------------
 Syntax
   #pragma INCLUDELIB <library>

 Arguments
   <library> is the name of the library to search at link time.
   The name may not contain a path or extension.

 Description
   The #pragma INCLUDELIB directive causes the compiler to place
   a record in the object file that instructs the linker to search the
   specified library for unresolved external symbols. Automatic inclusion
   of libraries is useful for modules that are dependant on the presence
   of a certain library. One source file may contain several
   #pragma INCLUDELIB directives, each referring to a different library.

 Example
   #define EXAMPLE_DIRECTIV
   #include example.hdr

   /*
   Use a constant to control the generation of default library information
   
   To create modules for a non-PC environment, call the compiler using the
   following syntax:
   
   force.exe -DACME_COMP test.prg
   */
   
   #ifdef ACME_COMP
      #pragma DEFLIB-             // do not include force.lib in the default
                                  // library record
      #pragma INCLUDELIB forceac  // use another runtime library instead of
                                  // force.lib
      #pragma INCLUDELIB acmefunc // add acmefunc.lib to the default library
                                  // list
   #endif
   
   proc Test_861
   ? "Hello world"
   endproc

   proc main
   Test_861()
   endproc

See Also: #pragma DEFLIB

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson