[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Include paths
From: |
Anton Shepelev |
Subject: |
Re: [Tinycc-devel] Include paths |
Date: |
Thu, 22 Aug 2013 14:51:04 +0400 |
Thomas Preud'homme:
> > The manual says:
> >
> > The default system include paths are: '/usr/
> > local/include', '/usr/include' and 'PREFIX/
> > lib/ tcc/include'. ('PREFIX' is usually
> > '/usr' or '/usr/local').
> >
> > But [what] is PREFIX? Is it an environment
> > variable or some internal constant? How to de-
> > termine it if I'm on Windows?
>
> It's the path passed to configure via the -- pre-
> fix switch. By default it's C:/Program Files/tcc
> on Windows and /usr/local for other systems.
Thank you very much. I copied the include directory
to that path so that I now have:
C:\Program Files\tcc\include and
C:\Program Files\tcc\lib
yet tcc still can't compile the program without the
-I and -L options.
What's more interesting, at my home PC tcc finds its
include and lib directories irregardless of where it
is located, as if it were looking them up relatively
to the location of the executable: I renamed its
parent directory (say, to TCC-2), and called it from
the root of the drive -- and it worked again. I al-
so made sure that it was the local (sibling to
tcc.exe) include directory that was used by renaming
it.
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments