Re: BOOST_LANGBINDING_DECL
David Abrahams <[email protected]>
| Newsgroups | gmane.comp.lib.boost.langbinding |
|---|---|
| Message-ID | <[email protected]> |
Daniel Wallin <[email protected]> writes: > At 18:30 2003-07-31, David Abrahams wrote: >>Daniel Wallin <[email protected]> writes: >> >> > At 01:38 2003-07-30, David Abrahams wrote: >> > >> >>IIRC, MinGW (and probably Cygwin, therefore) doesn't respond well when >> >>you try to use __declspec(dll-imp/exp-ort) for individual members of a >> >>class. I get into trouble every time I do it. That's why >> >>Boost.Python only exports entire classes. I always add a layer of >> >>inheritance if I need to have inline or templated member functions in >> >>a class with exported members. >> > >> > Ok. I am unable to get even the most trivial dll test with cygwin to work: >> > <snip> >>You need to stop having A::f() be inline, I'm guessing. >>Cygwin is finicky, like I said. >> >>There are plenty of examples of how to do this in the Boost.Python >>codebase. > > Yeah, sorry for the noise. I just forgot BOOST_LANGBINDING_DECL on > one of the member functions, which messed the entire thing up. Stupid > mistake. Err, I think that's part of my point: you may as well put it on the whole class, because if you put it on some of the individual member functions but not on all of them, GCC will fail to link properly. -- Dave Abrahams Boost Consulting www.boost-consulting.com ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01