gcc header file help should be a minor problem
Greg Chicares
gchicares@sbcglobal.net
Fri Sep 21 00:07:00 GMT 2007
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/
More information about the Cygwin
mailing list