Re: [Anjuta-list] Executable works in command line, not anjuta



On Wed, 2004-01-07 at 06:07, Paulo Jorge de Oliveira Cantante de Matos
wrote:
> On Tue, 2004-01-06 at 23:08, Nuno Marques wrote:
> > regarding the executable path question, i just tested and it is executed 
> > in the src directory (or the directory you have in your project 
> > configuration, i presume)
> > 
> 
> Strange, but why then it runs ok in command line and not in anjuta? the
> program itselfs says it cannot open the file!
> 
Generally, it's not a good idea to assume that the executatble will be
run in it's own directory.

If you want to access files inside src directory, say for testing
purpose, use the PACKAGE_SOURCE_DIR macro, which is the directory of the
executable.

Regards,
-Naba






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]