Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use of subs in other folders
#1

I have a project with two subfolders: LIBBAS and LIBFILES. The files in LIBBAS use subs that are in LIBFILES. I use REM $INCLUDE : with the path to the file of interest in LIBFILES, but get constantly a message $Metacommand error.
How can I achieve that the files in LIBBAS can use subs in LIBFILES.
Thank you.
Reply
#2
Just set the LIB environment variable to the path of the LIBFILES directory. i.e., from the DOS prompt, do "SET LIB=C:\qb\LIBFILES;%LIB%"
Reply
#3
Code:
'$INCLUDE: 'LIBFILES\MYLIB.BI'

should work
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#4
actually, since I think the dir structure looks like this:

rootdir\
libfiles\
libbas\

you would need to do:
Code:
' $INCLUDE: '..\libfiles\mylib.bi'
Reply
#5
Quote:
Code:
' $INCLUDE: '..\libfiles\mylib.bi'

durn
you beat me to it =D
Reply
#6
Big Grin
blargh... I put the wrong thing in my first post - it should be the INCLUDE environment variable if you're trying to $INLCUDE files, but LIB for linking in libraries in another dir.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)