Hi,

some time ago I was asking about this issue I had with precompiled headers, but I feel my situation was too complex.

Now I had the time to set up a small experiment: basically an empty project with a single header which I try to precompile and include it to the single source file.

The result is still the same: gcc precompiles the header then when it comes to compiling the source file it crashes saying 'cc1plus.exe has stopped working' (under Win7 64bit Home Premium edition).

To reproduce this you'll need boost (I have 1.49 here installed) and the following files:

-----------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------
/*
 * precompiled.h
 */

#ifndef PRECOMPILED_H_
#define PRECOMPILED_H_

//boost

#include <boost/lexical_cast.hpp>



#endif /* PRECOMPILED_H_ */
-----------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------
/*
 * main.cpp
 */


#include "precompiled.h"

int main()
{
return 0;
}
-----------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------

#precompiled.make

C_FLAGS = -O0 -g3 -Wall -c -MMD -MP
INC_PATH = -IC:/docs/boost/boost_1_49_0

all: Precompiled.h.gch
   
    @echo 'Finished precompiling headers....'
   
Precompiled.h.gch: Precompiled.h   
    @echo 'Building target: $@'
    g++.exe Precompiled.h $(INC_PATH) $(C_FLAGS)     

clean:
    rm Precompiled.h.gch   

-----------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------

Eclipse pre-build step to compile the .gch:
make all -C ../inc -f precompiled.make
-----------------------------------------------------------------------------------------------------------------------------------------------------

Can anyone reproduce this? Anyone has some idea how could it be solved?

Thanks,
--

Juhász Ádám

jadam1212@gmail.com
0036-30-2614731