[Devel] CVS commitlog: sip-server/modules/postgres Makefile dbase.c pg_con.h

Klaus Darilion klaus.mailinglists at pernau.at
Wed Feb 14 13:31:18 CET 2007


Bogdan-Andrei Iancu wrote:
> Hi Klaus,
> 
> The '< ...>' notation instructs the compiler to look for the file in 
> certain 'standard' system directories (like the once specified via -I 
> param;
> 
> to quote from wikipedia (http://en.wikipedia.org/wiki/C_preprocessor):
> 
> The angle brackets were originally used to indicate 'system' include 
> files, and double quotes user-written include files, and it is good 
> practice to retain this distinction. C compilers and programming 
> environments all have a facility which allows the programmer to define 
> where include files can be found. This can be introduced through a 
> command line flag, which can be parameterized using a makefile 
> <http://en.wikipedia.org/wiki/Make>, so that a different set of include 
> files can be swapped in for different operating systems, for instance.
> 
> so, the error was not the "" versus <>, but including the "postgres" 
> path in include - guess on CentOS the file is located on a different path
> 
> Helge, could you see where the libpq-fe.h file is locate on your system?
> 
> thanks and regards,
> bogdan
> 
> Klaus Darilion wrote:
>> Bogdan-Andrei Iancu wrote:
>>
>>>   1.3       +2 -2      sip-server/modules/postgres/pg_con.h
>>>    [ 
>>> http://openser.cvs.sourceforge.net/openser/sip-server/modules/postgres/pg_con.h?r1=1.2&r2=1.3 
>>> ]
>>
>> Hi!
>>
>> Please enlighten a amateur programmer: I always thought that include 
>> with <> should be used for system libraries and "" for local include 
>> files.

A was inspired by the mysql module in my_con.h:

#include <mysql/mysql.h>

thus, is this a bug too?

regards
klaus


-- 
Klaus Darilion
nic.at




More information about the Devel mailing list