Hello, I tried to run SimpleLs program, but got a TypeLoadException at the line below. I use boost-1.30.2, MSVC++7.0 Any idea what could be causing the problem? for ( fs::directory_iterator dir_itr( full_path ); dir_itr != end_iter; ++dir_itr ) // exception thrown here Output: In directory: C:\src\cpp Unhandled Exception: System.TypeLoadException: Could not load type boost.filesystem.dir_itr_imp from assembly Filesystem Demo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. at boost.==(shared_ptr<boost::filesystem::directory_iterator::dir_itr_imp>* a, shared_ptr<boost::filesystem::director y_iterator::dir_itr_imp>* b) at boost.filesystem.!=(directory_iterator* x, directory_iterator* y) in c:\lib\cpp\boost-1.30.2\boost\filesystem\oper ations.hpp:line 93 at main(Int32 argc, SByte** argv) in c:\src\cpp\boost\filesystemdemo\simplels.cpp:line 44
Resolved. Simply had to build the library without managed extensions.. "Sergey K." <sergei555@hotmail.com> wrote in message news:bnh3p1$dm6$1@sea.gmane.org...
Hello, I tried to run SimpleLs program, but got a TypeLoadException at the line below. I use boost-1.30.2, MSVC++7.0
Any idea what could be causing the problem?
for ( fs::directory_iterator dir_itr( full_path ); dir_itr != end_iter; ++dir_itr ) // exception thrown here
Output:
In directory: C:\src\cpp
Unhandled Exception: System.TypeLoadException: Could not load type boost.filesystem.dir_itr_imp from assembly Filesystem Demo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. at boost.==(shared_ptr<boost::filesystem::directory_iterator::dir_itr_imp>* a, shared_ptr<boost::filesystem::director y_iterator::dir_itr_imp>* b) at boost.filesystem.!=(directory_iterator* x, directory_iterator* y) in c:\lib\cpp\boost-1.30.2\boost\filesystem\oper ations.hpp:line 93 at main(Int32 argc, SByte** argv) in c:\src\cpp\boost\filesystemdemo\simplels.cpp:line 44
participants (1)
-
Sergey K.