This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: gcc header file help should be a minor problem
- From: Greg Chicares <gchicares at sbcglobal dot net>
- To: cygwin at cygwin dot com
- Date: Fri, 21 Sep 2007 00:06:51 +0000
- Subject: Re: gcc header file help should be a minor problem
- References: <12807222.post@talk.nabble.com>
On 2007-09-20 22:25Z, patrickinminneapolis wrote:
>
> This works fine :
> gcc -c -fpic example.c example_wrap.c
I thought that'd give a (harmless) warning about '-fpic', but anyway...
> But I want to include files in a different directory, so just to test, I
> moved example_wrap.c to c:\ , i tested
> gcc -c -fpic -I/cygdrive/c/ example.c example_wrap.c //failed (couldn't
> find example_wrap.c)
'-I' is for finding headers named in an #include directive. But
'example_wrap.c' is a source file, not a header, so do this:
gcc -c example.c /cygdrive/c/example_wrap.c
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/