On Wed, Sep 19, 2012 at 11:11:14PM -0700, Leo Susanto wrote:
> I am really baffled by this problem: can someone explain why GCC can
> not find an include file?
> 
>     > cpan PAJAS/XML-LibXML-1.70.tar.gz
>     ...
>     C:/CPANTE~1/PERL51~1.0_6/site/bin/gcc.exe -c    -DNDEBUG -DWIN32
> -D_CONSOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS
> -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
> -DUSE_PERLIO -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -O2
> -DVERSION=\"1.70\" -DXS_VERSION=\"1.70\"
> "-IC:\CPANTesters\Perl5.16.0_64\lib\CORE"  -DHAVE_UTF8 -DHAVE_BLANK
> LibXML.c
>     LibXML.xs:34:31: fatal error: libxml/xmlversion.h: No such file or 
> directory
> 
>     > IF EXIST %INCLUDE%\libxml\xmlversion.h ECHO Cogito ergo sum
>     Cogito ergo sum
> 
> This is ActiveState 5.16.0 64 bit with MinGW64.
> 
> I also posted this to
> http://stackoverflow.com/questions/12506906/gcc-can-not-find-file

GCC doesn't use INCLUDE for the include search path, unless it's a
MinGW extension.

GCC uses CPATH in general and C_INCLUDE_PATH for C and some other
environment variables for other languages.

Tony

Reply via email to