[ITK] [ITK-users] SimpleITK errors when linked against
jmerkow
jmerkow at gmail.com
Thu Jun 25 14:31:20 EDT 2015
Bradley Lowekamp wrote
> What are the errors you are getting when compiling with SimpleITK and
> boost?
>
> Brad
So, I don't see anything specific in SimpleITK to link against boost, I am
just starting to go down this rabbit hole.
I updated nsstd/functional.h by removing the c++11 and tr1 namespace bind
and function calls and replacing them with boost.
*In test file:*
#define BOOST_BIND_NO_PLACEHOLDERS
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include "SimpleITK.h"
...
namespace sitk = itk::simple;
...
*nsstd/functional.h*:
....
namespace itk {
namespace simple {
namespace nsstd {
using boost::function;
using boost::bind;
using namespace std::placeholders;
namespace placeholders = std::placeholders;
}}}
Right now, I am linking SimpleITK+Boost fine. However, I haven't test any
actual functionality yet.
I wanted to see anyone else had done this, and sanity check this approach.
--Jameson
--
View this message in context: http://itk-users.7.n7.nabble.com/SimpleITK-errors-when-linked-against-tp35829p35833.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list