Seçkin
Seçkin

Reputation: 2826

Boost::Log Error in Cpp / Cli Project

I have a cpp project, a cpp cli project and a c# win forms project. I am using boost log lib in my native cpp project.
When i test my project with a cpp console app, it runs and writes log successfully.

But, when i test it with cli project, i take this error :

Error 2 error LNK1104: cannot open file 'boost_log-vc100-mt-gd-1_44.lib'

I have downloaded boost lib and I have built boost libs and it has exported libboost_log_setup-vc100-mt-gd-1_44.lib , libboost_log-vc100-mt-gd-1_44.lib files.
How can i fix this? How can i get 'boost_log-vc100-mt-gd-1_44.lib' files?

Thanks

Upvotes: 2

Views: 526

Answers (2)

Seçkin
Seçkin

Reputation: 2826

I fixed the error. I have built the lib files with the command below :

bjam --with-log variant=debug define=BOOST_LOG_USE_CHAR define=BOOST_LOG_USE_WINNT6_API stage --build-type=complete --link=
shared

Upvotes: 3

juelle
juelle

Reputation: 21

Have you tried --build-type=complete when building boost? There appear lots of different versions of each boots lib (using different versions of the C++ runtime lib etc).

I am using boost 1.49, there seems to be no log-Library (It would be nice to have it included).

Upvotes: 2

Related Questions