make does not find standard library on first run

I am having a strange problem with make on 6.2. The make file that had
worked with 6.1 would now fail on the first pass because it could not find
vector, and other files. Yet I would run make again and it would compile.
If I ran the make file with clean and then tried to compile it would fail
again on the first try and succeed on the second. I verified that the
headers were there.

I then added the path to the make file ( /usr/include/cpp). Now it compiles
properly the first time. It seems that some internal setting with the
compiler is not being set properly. Has anybody else seen this problem?

Mike

MAR <mroop@vortek.com> wrote:

I am having a strange problem with make on 6.2. The make file that had
worked with 6.1 would now fail on the first pass because it could not find
vector, and other files. Yet I would run make again and it would compile.
If I ran the make file with clean and then tried to compile it would fail
again on the first try and succeed on the second. I verified that the
headers were there.

I then added the path to the make file ( /usr/include/cpp). Now it compiles
properly the first time. It seems that some internal setting with the
compiler is not being set properly. Has anybody else seen this problem?

Mike,

Can you post your make file and a small sample snippet code
that demonstrates the problem. I believe that between 6.1 and
6.2 we straightened out some of the problems we had with having
the compiler target various different C++ libraries (which
required re-directing the default includes).

Thanks,
Thomas

Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com Core OS Technology Group
(613)-591-0931 http://www.qnx.com/