On Mon, Jul 11, 2022 at 01:04:14PM +0200, Thomas Schmitt wrote: > Hi, > > how about this theory: > > https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#Invocation > says > > "-I dir > Add the directory dir to the list of directories to be searched > for header files during preprocessing." > > Note the the singular "dir", not "dirs". > > In Igor Korot's Makefile.am we see > > libpostgres_la_CXXFLAGS = -D__WXGTK__ \ > -I../../dbinterface \ > `pg_config \ > --includedir` > > which is supposed to a set the variable libpostgres_la_CXXFLAGS to > > -D__WXGTK__ -I../../dbinterface /usr/include/postgresql > > It appears that an argument -I is missing before /usr/include/postgresql.
This is a very good theory. It has to be "-I foo -I bar ...", AFAIR. The current manual [1] is very clear on this, too. Sharp eye :) Note that this wouldn't happen with the very similar `pkg-config'. This one prepends the `-I' to its output. o figure ;-) Cheers [1] https://gcc.gnu.org/onlinedocs/gcc-12.1.0/gcc/Directory-Options.html#Directory-Options -- t
signature.asc
Description: PGP signature