Opened 7 years ago
Last modified 6 years ago
#12143 new Bugs
Preferred separator not exported in dll under Windows
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | filesystem |
Version: | Boost 1.60.0 | Severity: | Problem |
Keywords: | preferred_separator | Cc: |
Description
Under windows(10) with MSVC14 compiler, I get the following linking error:
Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "__declspec(dllimport) public: static wchar_t const boost::filesystem::path::preferred_separator" (__imp_?preferred_separator@path@filesystem@boost@@2_WB) bfs D:\Info\cvisd\bfs\bfs\main.obj 1 Error LNK1120 1 unresolved externals bfs D:\Info\cvisd\bfs\x64\Release\bfs.exe 1
I get it on both amd64 and i386 if I
#define BOOST_ALL_DYN_LINK
Change History (2)
comment:1 by , 7 years ago
comment:2 by , 6 years ago
#define BOOST_ALL_DYN_LINK #include <boost/filesystem.hpp> int main() { assert(boost::filesystem::path::preferred_separator == L'\\'); }
is working as expected (Win10 + MSVC14).
Maybe there was a problem when building your libraries.
Note:
See TracTickets
for help on using tickets.
This happens on both: