TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Paul Rider
from: Mario Semo
date: 1996-07-23 11:06:52
subject: Include Dirs, adding Libs VACPP

Hello Paul,

On Jul 19 21:27 96, Paul Rider of 1:163/427 wrote:

 PR> simple.c (only source file) includes "aux.h" in another 
 PR> directory. needs to link with libaux.lib also in another 
 PR> directory

 PR> where do I set what options to do this?

if aux.h is something like a 'standard' include file from you (or another
3rd party vendor) then i would change include in config.sys (and reboot).

if it is required only for this file, i would use /I compiler switch.

as for the .lib : the same.

a) add the path to the LIB variable 
  a1) use a #pragma libary statement in aux.h
  or
  a2) name aux.lib in the link call (or in the icc call) without path

or
b) just name path\aux.lib in the link or icc call. 

 WARPED!, Mario

--- Msgedsq/2 2.2e
* Origin: LC/32 Development Team-Vienna-Austria (2:310/14.11)
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: 310/14 1 24/999 888 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™.