Hi All,
I need to compile the hello.C file on Windows by hand using the command
line - "cl.exe"
I have built boost by hand and have it installed in:
f:\Boost\boost_1_45_0\boost_1_45_0\
the compiled libraries, are in f:\Boost\boost_1_45_0\boost_1_45_0\stage\lib
F:\libraries\test\wt>set lib
LIB=C:\Program Files\Microsoft Visual Studio 10.0\VC\LIB;C:\Program
Files\Microsoft
SDKs\Windows\v7.0A\lib;f:\Boost\lib;f:\Boost\boost_1_45_0\boost_1_45_0\stage\lib;f:\libraries\lib
LIBPATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\Framework\v3.5;C:\Program
Files\Microsoft Visual Studio 10.0\VC\LIB;
I am trying to compile with the following line:F:\libraries\test\wt>cl /EHsc
/I\wt-3.1.10\src\ /I\Boost\boost_1_45_0\boost_1_45_0 /I\wt-3.1.10\ /TP hello.C
/MDd /link wtd.lib wthttpd.lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
hello.C
Microsoft (R) Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.
/out:hello.exe
wtd.lib
wthttpd.lib
hello.obj
Creating library hello.lib and object hello.exp
wtd.lib(random_device.obj) : error LNK2019: unresolved external symbol __imp__Cr
yptAcquireContextA@20 referenced in function "public: __thiscall boost::random_d
evice::impl::impl(class std::basic_string<char,struct std::char_traits<char>,cla
ss std::allocator<char> > const &)" (??0impl@random_device@boost@@QAE@ABV?$basic
_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
wtd.lib(random_device.obj) : error LNK2019: unresolved external symbol __imp__Cr
yptReleaseContext@8 referenced in function "public: __thiscall boost::random_dev
ice::impl::~impl(void)" (??1impl@random_device@boost@@QAE@XZ)
wtd.lib(random_device.obj) : error LNK2019: unresolved external symbol __imp__Cr
yptGenRandom@12 referenced in function "public: unsigned int __thiscall boost::r
andom_device::impl::next(void)" (?next@impl@random_device@boost@@QAEIXZ)
hello.exe : fatal error LNK1120: 3 unresolved externals
To summarize the output
external symbols missing related to random_device. I have found that the
symbol random_device exists in files:
1. random.hpp (boost/tr1)
2. nondet_random.hpp (boost)
3. seed_rng.hpp (boost/uuid)
Can someone please help me with compiling this successfully. I have compiled
boost with instructions given here:
http://stackoverflow.com/questions/4619764/do-i-have-static-or-dynamic-boost-libraries
specifically:
"--build-type=complete"
Many thanks for help in advance.
Kind Regards,
Neil D'Souza
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest