Opened 16 years ago

Closed 15 years ago

#877 closed Bugs (fixed)

'NULL' undefined in basic_serializer_map.cpp

Reported by: farid_zaripov Owned by: Robert Ramey
Milestone: Component: serialization
Version: None Severity: Showstopper
Keywords: Cc:

Description

I have been working on the Apache C++ Standard Library project (STDCXX): http://incubator.apache.org/stdcxx/

I've trying to compile the boost library with stdcxx.

The details can be found here: http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200704.mbox/%3c7BDB2168BEAEF14C98F1901FD2DE64386573EB@epmsa009.minsk.epam.com%3e

Boost version: 1.33.1
STDCXX version: 4.2

I've got the error in basic_serializer_map.cpp:

D:\_Libs\boost_1_33_1\libs\serialization\build\../src/basic_serializer_map.cpp(72) : error C2065: 'NULL' : undeclared identifier

    CALL "D:\Program Files\Microsoft Visual Studio 8\Common7\Tools\..\..\VC\bin\vcvars32.BAT" >nul 
    "D:\Program Files\Microsoft Visual Studio 8\Common7\Tools\..\..\VC\bin\cl"  /Zm800 -nologo /EHsc -c  -DBOOST_LIB_DIAGNOSTIC=1 -D_RWSTDDEBUG  /Z7 /Od /Ob0 /EHsc /GR /MTd  -Gy -wd4996 /Zc:forScope /Zc:wchar_t  -I"bin\boost\libs\serialization\build"  -I"D:\_Projects\stdcxx_working\include" -I"D:\_Projects\stdcxx_working\include\ansi" -I"D:\_Projects\stdcxx_working\build\msvc-8.0\15s\include"  -I"D:\_Libs\boost_1_33_1"   -Fo"bin\boost\libs\serialization\build\libboost_serialization.lib\vc-8_0-stdcxx\debug\runtime-link-static\threading-multi\basic_serializer_map.obj"  -Tp"D:\_Libs\boost_1_33_1\libs\serialization\build\../src/basic_serializer_map.cpp" 

I propose to #include <stdlib.h> to define the NULL macro.

Change History (5)

comment:1 by anonymous, 15 years ago

I've added this to my local version for testing. Assuming no problems, it will appear in 1.35

comment:2 by farid_zaripov, 15 years ago

The cross-reference link to the Apache STDCXX issue tracker: http://issues.apache.org/jira/browse/STDCXX-430

comment:3 by farid_zaripov <faridz@…>, 15 years ago

May I hope that the changes will appear in 1.34.1?

comment:4 by ramey@…, 15 years ago

Included as part of version 1.35

Robert Ramey

comment:5 by Robert Ramey, 15 years ago

Resolution: Nonefixed
Severity: Showstopper
Status: assignedclosed
Note: See TracTickets for help on using tickets.