bug-gmp
[Top][All Lists]
Advanced

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

Re: bug with mpz_ui_sub


From: Karl Hasselstrom
Subject: Re: bug with mpz_ui_sub
Date: Tue, 1 Apr 2003 17:36:21 +0200
User-agent: Mutt/1.3.28i

On 2003-04-01 16:42:19 +0200, Torbjorn Granlund wrote:
> Karl Hasselstrom <address@hidden> writes:
> 
>   But he included it with quotes, like this:
>   
>       #include "gmp.h"
>   
>   In that case, won't the compiler look for gmp.h only in the current
>   directory?
> 
> No, Unfortunately that is not how it works.
> I don't remember the exact rules.

OK, I looked it up. From the GCC 3.2.2 manual:

#include <file>
   This variant is used for system header files. It searches for a
   file named file in a standard list of system directories. You can
   prepend directories to this list with the -I option (see
   Invocation).

#include "file"
   This variant is used for header files of your own program. It
   searches for a file named file first in the directory containing
   the current file, then in the same directories used for <file>.

Hopefully, other C preprocessors use the same rules.

-- 
Karl Hasselström, address@hidden
      www.treskal.com/kalle




reply via email to

[Prev in Thread] Current Thread [Next in Thread]