Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Sep 2000 10:54:42 +0000
From:      Gustavo Vieira Goncalves Coelho Rios <kernel@tdnet.com.br>
To:        freebsd-questions@freebsd.org
Subject:   configuring default include files
Message-ID:  <39B773F2.BE2B2AEB@tdnet.com.br>

next in thread | raw e-mail | index | archive | help
Dear gentleman,

i am a novice gcc user and currently i am having problem to include not
default path to my C files.

Mysql include files lie under /usr/local/include/mysql/*.h and in my c
sources i am including <mysql/mysql.h>. The problem is that
/usr/local/include is not in my default gcc include path, so when i try
to compile the source i have to use the flags -I/usr/local/include.

How can i configure gcc to include /usr/local/include in its search path
set, cause i really does not enjoy using -I/usr/local/include


PS: my uname -a output is:
etosha# uname -a
FreeBSD etosha 4.1-STABLE FreeBSD 4.1-STABLE #0: Tue Sep  5 18:23:37 GMT
2000     root@etosha:/usr/obj/usr/src/sys/ETOSHA  i386

My GCC version is:

grios@etosha:/usr/home/grios$ gcc -v  
Using builtin specs.
gcc version 2.95.2 19991024 (release)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39B773F2.BE2B2AEB>