Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#10932 closed Bugs (fixed)

Boost.Python Missing Include Placeholders

Reported by: a.huebl@… Owned by: Stefan Seefeld
Milestone: To Be Determined Component: python USE GITHUB
Version: Boost 1.57.0 Severity: Showstopper
Keywords: nvcc python missing include Cc:

Description

Hi,

I am compiling Boost.Python with nvcc/6.5, gcc/4.6.2, python/2.7.8 and cmake/3.0.1 right now.

As a side note, I modified the standard FindPythonLibs.cmake a bit to match the cuda_add_library calls.

During compile, get an error

boost/python/exception_translator.hpp(22): error: identifier "_1" is undefined
boost/python/exception_translator.hpp(22): error: identifier "_2" is undefined

due to a missing include:

#include <boost/bind/placeholders.hpp>

The attached patch and GitHub pull request no. 13 fix the issue.

Attachments (1)

patchIncludePython.txt (512 bytes ) - added by a.huebl@… 8 years ago.
Patch: Add missing include (bind placeholders)

Download all attachments as: .zip

Change History (4)

by a.huebl@…, 8 years ago

Attachment: patchIncludePython.txt added

Patch: Add missing include (bind placeholders)

comment:1 by Stefan Seefeld, 8 years ago

Owner: changed from Ralf W. Grosse-Kunstleve to Stefan Seefeld

comment:2 by Stefan Seefeld, 8 years ago

Resolution: fixed
Status: newclosed

comment:3 by a.huebl@…, 6 years ago

just for reference, the issue was triggered as soon as BOOST_BIND_NO_PLACEHOLDERS was defined in user code.

Note: See TracTickets for help on using tickets.