|
|
|
|
Re: GCC doesn't find include path [message #716336 is a reply to message #716134] |
Wed, 17 August 2011 05:36 |
Marco Messages: 4 Registered: August 2011 |
Junior Member |
|
|
It is installed. As I wrote, exactly this project (checked out from svn server) compiles very well on another system. This is not the problem.
But why does the compiler search teh file in the parent folder? As you can see in my first posting, the error messages says "can't find ../bzlib_private.h". The inlcude line is "#include "bzlib_private.h"". Where comes the "../" from?
[Updated on: Wed, 17 August 2011 05:37] Report message to a moderator
|
|
|
|
|
|
Re: GCC doesn't find include path [message #716406 is a reply to message #716385] |
Wed, 17 August 2011 10:03 |
Hagen Messages: 90 Registered: April 2010 |
Member |
|
|
On 8/17/2011 11:10 AM, Marco wrote:
> OK, but why does it compile on another system? It's the same project
> structure, the same project settings. Both systems use the newest
> Eclipse CDT version, both are fresh installed.
The error message tells you the reason.
It has NOTHING to do with Eclipse.
Read carefully:
> Invoking: GCC C Compiler
> gcc -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"blocksort.d" -MT"blocksort.d" -o "blocksort.o" "../blocksort.c"
> In file included from ../blocksort.c:22:
> ./bzlib_private.h:33:19: error: bzlib.h: Datei oder Verzeichnis nicht gefunden
> In file included from ../blocksort.c:22:
blocksort.c
includes
bzlib_private.h
bzlib_private.h
includes
bzlib.h
bzlib.h: not found
bzlib.h is a system include file (these live e.g. in /usr/include/).
It comes with the bzip2 library development package "libbz2-dev"
(or however the package is called on SuSE11.1).
On the system where the compile fails, the development package that
contains bzlib.h is not installed.
On the system where it works, you will have it installed.
Clear now?
|
|
|
Powered by
FUDForum. Page generated in 0.03834 seconds