cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum
GDL coding questions, Python and add-on development using the API Dev Kit.

Using Boost Asio in an ArchiCad Addon

Anonymous
Not applicable
Hello, I'm currently trying to use Boost Asio in one of the examples provided in the DevKit. I simply include the following .hpp in the addon and I get Linking errors.
#include <boost/asio.hpp>

The example I'm using is the 3D_Test.

And this one of the linking errors:

Error 1 error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "public: __cdecl boost::system::error_code::error_code(void)" (??0error_code@system@boost@@QEAA@XZ) D:\GRAPHISOFT\API Development Kit 18.3006\Examples\3D_Test - Copy\3D_Test.obj 3D_Test

Can anyone help me with this problem?
If you need any other information feel free to ask.

Additional Information:
Using Windows 8.1, Microsoft Visual Studio 2013 but with the 2010 tools.
2 REPLIES 2

Ralph Wessel
Mentor
Xylios wrote:
Error 1 error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl
This link might help.
Ralph Wessel BArch

Anonymous
Not applicable
Hey, thank you for the help. I was able to fix my problems. I did the following for anyone interested.

First:
using nuget (addon for visual studio) install the packages:
install-package boost
install-package boost_system
Second:
Go to Linker -> Input -> Additional Dependencies add:
ws2_32.lib

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!