Using Boost Asio in an ArchiCad Addon
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-02-11
01:15 PM
- last edited on
‎2023-08-01
01:40 PM
by
Doreena Deng
‎2015-02-11
01:15 PM
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.
#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.
Labels:
- Labels:
-
Add-On (C++)
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-02-11 09:18 PM
‎2015-02-11
09:18 PM
Xylios wrote:This link might help.
Error 1 error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-02-12 07:22 PM
‎2015-02-12
07:22 PM
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
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