Opened 15 years ago

Closed 15 years ago

#1547 closed Bugs (fixed)

[thread] error C2065: 'NULL' : undeclared identifier in thread_primitives.hpp

Reported by: faridz@… Owned by: Anthony Williams
Milestone: Boost 1.35.0 Component: thread
Version: Boost Development Trunk Severity: Showstopper
Keywords: Cc:

Description

The stdcxx is the another implementation of the STL (initially based on RogueWave STL).

The following errors are encountered when running boost regression tests on msvc with stdcxx-4.2.0.

d:\boost\boost\boost\thread\win32\thread_primitives.hpp(184) : error C2065: 'NULL' : undeclared identifier
d:\boost\boost\boost\thread\win32\thread_primitives.hpp(184) : error C2065: 'NULL' : undeclared identifier

I propose to add #include <cstdlib> in thread_primitives.hpp to define the NULL macro, or even better - replace the all NULL macros to 0.

Change History (1)

comment:1 by Anthony Williams, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.