Mail Archives: djgpp/1996/07/22/09:32:36
| Xref: | news2.mv.net comp.os.msdos.djgpp:6256
|
| From: | Orbital <vazndain AT pit DOT ktu DOT lt>
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | bug in exec/spawn ?
|
| Date: | Mon, 22 Jul 1996 11:43:14 +0300
|
| Organization: | LITNET
|
| Lines: | 11
|
| Message-ID: | <Pine.SOL.3.91.960722112637.25809A-100000@zalgiris>
|
| NNTP-Posting-Host: | zveris.pit.ktu.lt
|
| Mime-Version: | 1.0
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I wrote this program which loads its confguration file from the directory
where the executable is. I use argv[0] to determine it. However, when my
program is invoked from make or rhide, it can never find the cfg file. I
wrote a little test prg, smth like puts(argv[0]); and when invoked from
make or rhide it displays *only* its name, *without* the path. What gives?
Martynas
- Raw text -