TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Paul Rider
from: Murray Lesser
date: 1996-07-22 07:36:04
subject: Include Dirs, adding Lib

Excerpted from message dated 07-19-96, Paul Rider to All:

PR>Can anyone tell me how to specify additional directories for include
  >files? do I really have to change the SET INCLUDE= line and 
  >reboot?, or even re-set it? isn't there a way to specify it within
  >the project?

PR>I'm also trying to link with a library file.

Hi Paul--

    The technique I use works only if you do your compiling and linking
from the command line.  For each compiler you use, set up a "batch" file
(not REXX) that resets the environment variables for that session only,
using (for example) "SET INCLUDE=;%INCLUDE%;" (quotation
marks should not be used).  If you have some DLL directories to add to
the LIBPATH, you can also use "SET
BEGINLIBPATH=;" which will
read the LIBPATH entries for this session before reading the ones in
config.sys.

    Call the batch file from a desktop program-object icon that uses an
OS/2 full-screen window.  The entry in the settings "Program" field
should be an asterisk (*), the "Parameters" field: "/K
"
(again, no quotes) and use your choice for the working directory.  When
you exit the session, these added paths will vanish.

          --Murray

___
 * MR/2 2.25 #120 * The wyse JdeBP seith: "Have a good OS/2 day."

--- Maximus/2 2.02
* Origin: OS/2 Shareware BBS, telnet://bbs.os2bbs.com (1:109/347)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 109/347 18 13/25 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.