Opened 15 years ago

Closed 15 years ago

#1282 closed Bugs (fixed)

filesystem::directory_iterator(path) causes a dynamic link error

Reported by: lazalong@… Owned by: Beman Dawes
Milestone: Boost 1.35.0 Component: filesystem
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc:

Description

This simple code will cause a link error when linked to the dynamic boost_filesystem-vc80-mt-1_34_1.lib. This problem is also present in 1.34.

Btw linking to the static version works.

int _tmain(int argc, _TCHAR* argv[])
{
    std::string filename("./tmp.txt");
    boost::filesystem::path path(filename);
    boost::filesystem::directory_iterator iter(path); // <- the culprit
    return 0;
}

Here is the link error

1>Boost bug.obj : error LNK2001: unresolved external symbol "unsigned int boost::filesystem::detail::not_found_error" (?not_found_error@detail@filesystem@boost@@3IA)

Change History (1)

comment:1 by Beman Dawes, 15 years ago

Milestone: To Be DeterminedBoost 1.35.0
Resolution: fixed
Severity: RegressionProblem
Status: newclosed

The code involved has changed quite a bit in the SVN trunk. The test case mentioned in the bug report is covered by the current operations_test, so should show up in testing for 1.35.0if there are still any problems.

Note that operations_test is run with both static and dynamic linking. The static test has failed in the past on some platforms, and the dynamic test has failed on other platforms. Thus in any future trouble reports, please be sure to be very specific about the platform involved.

Thanks,

--Beman

Note: See TracTickets for help on using tickets.