Beginner Question (Windows MSVC)

I can't seem to include/link and compile properly. I am using boost 1.64 and Visual Studio 2017 (Community). I can successfully include the headers and compile the example program on the Getting Started page[1]. But when trying to simply compile the mutex example from interprocess docs[2], I get this error: LINK : fatal error LNK1104: cannot open file `libboost_date_time-vc141-mt-2-1_64.lib`
From the Getting Started page on linking, I have been trying the following:
cl /EHsc /I boost_1_64_0 doc_memtest1.cpp ^ /link /LIBPATH:F\src\boost_1_64_0\stage\lib I have even tried a solution from Stackoverflow[3], multiple times with various configurations, x64/x86, but nothing. I don't even have that particular library. I have "libboost_date_time-vc141-mt-gd-1_64.lib" and "libboost_date_time-vc141-mt-1_64.lib". I assume I am doing something wrong, as I am new to programming on Windows/MSVC. Any help? Thanks! James [1] http://www.boost.org/doc/libs/1_64_0/more/getting_started/windows.html [2] http://www.boost.org/doc/libs/1_64_0/doc/html/interprocess/synchronization_m... [3] https://stackoverflow.com/questions/41464356/build-boost-with-msvc-14-1-vs20...

correction, the error was:
LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc141-mt-
s-1_64.lib'
On Fri, Jun 9, 2017 at 7:00 PM, James Stortz
I can't seem to include/link and compile properly. I am using boost 1.64 and Visual Studio 2017 (Community).
I can successfully include the headers and compile the example program on the Getting Started page[1]. But when trying to simply compile the mutex example from interprocess docs[2], I get this error:
LINK : fatal error LNK1104: cannot open file `libboost_date_time-vc141-mt- 2-1_64.lib`
From the Getting Started page on linking, I have been trying the following:
cl /EHsc /I boost_1_64_0 doc_memtest1.cpp ^ /link /LIBPATH:F\src\boost_1_64_0\stage\lib
I have even tried a solution from Stackoverflow[3], multiple times with various configurations, x64/x86, but nothing. I don't even have that particular library. I have "libboost_date_time-vc141-mt-gd-1_64.lib" and "libboost_date_time-vc141-mt-1_64.lib".
I assume I am doing something wrong, as I am new to programming on Windows/MSVC.
Any help? Thanks! James
[1] http://www.boost.org/doc/libs/1_64_0/more/getting_started/windows.html
[2] http://www.boost.org/doc/libs/1_64_0/doc/html/interprocess/ synchronization_mechanisms.html#interprocess.synchronization_mechanisms. mutexes.mutexes_anonymous_example
[3] https://stackoverflow.com/questions/41464356/build- boost-with-msvc-14-1-vs2017-rc

Look at the path you're using with LIBPATH, it seems wrong, it should probably be /LIBPATH:F:\src\boost_1_64_0\stage\lib --st On 10/06/2017 02:04, James Stortz via Boost-users wrote:
correction, the error was:
LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc141-mt-s-1_64.lib'
On Fri, Jun 9, 2017 at 7:00 PM, James Stortz
mailto:james.ryan.stortz@gmail.com> wrote: I can't seem to include/link and compile properly. I am using boost 1.64 and Visual Studio 2017 (Community).
I can successfully include the headers and compile the example program on the Getting Started page[1]. But when trying to simply compile the mutex example from interprocess docs[2], I get this error:
LINK : fatal error LNK1104: cannot open file `libboost_date_time-vc141-mt-2-1_64.lib`
From the Getting Started page on linking, I have been trying the following:
cl /EHsc /I boost_1_64_0 doc_memtest1.cpp ^ /link /LIBPATH:F\src\boost_1_64_0\stage\lib
I have even tried a solution from Stackoverflow[3], multiple times with various configurations, x64/x86, but nothing. I don't even have that particular library. I have "libboost_date_time-vc141-mt-gd-1_64.lib" and "libboost_date_time-vc141-mt-1_64.lib".
I assume I am doing something wrong, as I am new to programming on Windows/MSVC.
Any help? Thanks! James
[1] http://www.boost.org/doc/libs/1_64_0/more/getting_started/windows.html http://www.boost.org/doc/libs/1_64_0/more/getting_started/windows.html
[2] http://www.boost.org/doc/libs/1_64_0/doc/html/interprocess/synchronization_m... http://www.boost.org/doc/libs/1_64_0/doc/html/interprocess/synchronization_m...
[3] https://stackoverflow.com/questions/41464356/build-boost-with-msvc-14-1-vs20... https://stackoverflow.com/questions/41464356/build-boost-with-msvc-14-1-vs20...
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
James Stortz
-
stathis