Boost logo

Boost Users :

Subject: Re: [Boost-users] function calling convensions
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2009-10-25 15:24:02


On Sun, Oct 25, 2009 at 12:35 PM, Sean Farrow
<sean.farrow_at_[hidden]> wrote:
>
> Hi:
>
> I need to use the stdcall calling convension for a dll that I’m writing.
>
> When ever I do this with boost, I get the following errors:
>
> ...
>
>    Creating library d:\Work\Access For Everyone\GHG\TPProductsZW\Debug\TPProductsZW.lib and object d:\Work\Access For Everyone\GHG\TPProductsZW\Debug\TPProductsZW.exp
>
> TPProductsZW.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __stdcall boost::system::get_system_category(void)" (?get_system_category_at_system@boost@@YGABVerror_category_at_12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'system_category''(void)" (??__Esystem_category_at_system@boost@@YAXXZ)
>
> TPProductsZW.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __stdcall boost::system::get_generic_category(void)" (?get_generic_category_at_system@boost@@YGABVerror_category_at_12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'generic_category''(void)" (??__Egeneric_category_at_system@boost@@YAXXZ)
>
> d:\Work\Access For Everyone\GHG\TPProductsZW\Debug\TPProductsZW.dll : fatal error LNK1120: 2 unresolved externals
>
> Does anyone know how to solve this issue?
>
> I’m building statically, and using visual studio c++ 2008, I’m also using __declspec(dllexport)

Anytime I need to change the calling convention and I am static
linking anyway, always just easier to include the cpp files from boost
anyway that is used to build the lib. Someone may suggest a more
'correct' way though. :)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net