Print

Print


Jacek,

> One issue I am struggling with is this:
> 
> bld/czar/masterLib_wrap.cc: In function 'PyObject*
> _wrap___lshift__(PyObject*, PyObject*)':
> bld/czar/masterLib_wrap.cc:12266:22: error: redefinition of
> 'PyObject* _wrap___lshift__(PyObject*, PyObject*)'
> bld/czar/masterLib_wrap.cc:11986:22: error: 'PyObject*
> _wrap___lshift__(PyObject*, PyObject*)' previously defined here
> scons: *** [bld/czar/masterLib_wrap.os] Error 1

	This is a conflict between operator<< for Constraint and for
ChunkSpec/ChunkSpecSingle.  You probably want to just disable wrapping
all of these, possibly using %ignore in the .i file or else with #ifndef
SWIG in the C++ .h files.

	If you want to keep them, I think you may need to make sure that
SWIG knows about std::ostream so that it can properly recognize the
overloading.

	BTW, while poking through things, I noticed css/IntPair.  Why
not just use std::pair<int, int>?

-- 
Kian-Tat Lim, LSST Data Management, [log in to unmask]

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1