Re: [C++-sig] boost.python: tss_cleanup_implemented link error windows 64 bit

2012-02-20 Thread Niall Douglas
Generally when I see that missing symbol it means mismatched C runtimes. Usually in my experience it's safe to declare that symbol as weak to make the link error go away while handling if it's present correctly. Niall On 20 Feb 2012 at 20:02, Jon Wright wrote: > Hello, > > I have been trying

Re: [C++-sig] Exposing 128-bit aligned datatype

2012-02-20 Thread Niall Douglas
Aligning to 128 bits is surely __attribute__((__aligned__(16)))? You also can inherit from an aligned base class even if that base class contains no items and the alignment passes down just fine. BTW alignment isn't reliable as soon as something leaves static storage e.g. goes through a paramet

[C++-sig] boost.python: tss_cleanup_implemented link error windows 64 bit

2012-02-20 Thread Jon Wright
Hello, I have been trying to build pyopencl and pycuda on windows using the subset of boost in those packages on windows 64 bit. The problem is a link error due to missing tss_cleanup_implemented. The codes seem to run without problem if the link error is suppressed: http://thread.gmane.org/

Re: [C++-sig] Exposing 128-bit aligned datatype

2012-02-20 Thread Jim Bosch
I think this is probably a topic to take to the boost lists (or possibly the boost ticket system, if you're pretty sure it's not intentional). Jim On 02/20/2012 05:13 AM, VáclavŠmilauer wrote: I am exposing a struct which is 128-bit aligned to python; it is always constructed dynamically in c

[C++-sig] Exposing 128-bit aligned datatype

2012-02-20 Thread VáclavŠmilauer
I am exposing a struct which is 128-bit aligned to python; it is always constructed dynamically in c++ code, hence there is no trouble that the alignment is correct. I was getting errors on compilation and had to add this bit to my code: namespace boost { namespace align { struct __attribu