file location and inclusion question

From: Scott (scott_at_nospam.com)
Date: 06/24/04

  • Next message: Last2Know: "Re: Discussion: Multiple window GUIs"
    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


  • Next message: Last2Know: "Re: Discussion: Multiple window GUIs"

    Relevant Pages

    • Re: Font printing problem with X.org
      ... I have a strange problem concerning the postscript output of a ... set bb [.cnv bbox $txt] ... The "dejavu sans mono" font is a TrueType font downloaded from ... text in the postscript output. ...
      (comp.lang.tcl)
    • Re: Font printing problem with X.org
      ... I have a strange problem concerning the postscript output of a ... set bb [.cnv bbox $txt] ... The "dejavu sans mono" font is a TrueType font downloaded from ... text in the postscript output. ...
      (comp.lang.tcl)
    • Font printing problem with X.org
      ... I have a strange problem concerning the postscript output of a canvas containing text. ... set bb [.cnv bbox $txt] ... The "dejavu sans mono" font is a TrueType font downloaded from http://dejavu.sourceforge.net/wiki/index.php/Main_Page and installed in the X font path. ...
      (comp.lang.tcl)
    • Re: Font printing problem with X.org
      ... I have a strange problem concerning the postscript output of a canvas containing text. ... set bb [.cnv bbox $txt] ... The "dejavu sans mono" font is a TrueType font downloaded from http://dejavu.sourceforge.net/wiki/index.php/Main_Page and installed in the X font path. ...
      (comp.lang.tcl)
    • Re: Humongus bug in DECTERM (postscript printing)
      ... > Are you positive that your printer supported postscript, ... > the postscript output that was causing all the errors? ... The problem is that DECterm doesn't have code that generates postscript ...
      (comp.os.vms)