file location and inclusion question
From: Scott (scott_at_nospam.com)
Date: 06/24/04
- Previous message: David Schwartz: "Re: TCP/IP and UDP over RS232"
- Next in thread: Owen Jacobson: "Re: file location and inclusion question"
- Reply: Owen Jacobson: "Re: file location and inclusion question"
- Reply: Larry I Smith: "Re: file location and inclusion question"
- Reply: Kasper Dupont: "Re: file location and inclusion question"
- Reply: Josef Moellers: "Re: file location and inclusion question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 23 Jun 2004 22:00:43 GMT
Hi All,
I am developing a C++ app on Linux. It generates postscript output by
taking two postscript files:
file1.ps
file2.ps
and combining them with some programatically generated postscript to
produce a final output file. My question concerns how to properly
distribute this program. Currently, I open each file with a:
ifstream ifile( "file1.ps" );
and then copy it to the outfile. The file1.ps and file2.ps must be in the
directory I run the program in for it to work. To fix this, I have the
makefiles setup to distribute these files into the ${prefix}/share/
directory (I am using automake). My question is: since I don't know the
${prefix} variable (i.e. /usr or /usr/local) how can I setup the proper
path to my ifstream within the C++ file? Thanks for any assistance.
Best Regards,
Scott
- Previous message: David Schwartz: "Re: TCP/IP and UDP over RS232"
- Next in thread: Owen Jacobson: "Re: file location and inclusion question"
- Reply: Owen Jacobson: "Re: file location and inclusion question"
- Reply: Larry I Smith: "Re: file location and inclusion question"
- Reply: Kasper Dupont: "Re: file location and inclusion question"
- Reply: Josef Moellers: "Re: file location and inclusion question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|