Boost logo

Boost Users :

From: Sergey K. (sergei555_at_[hidden])
Date: 2003-10-26 18:21:17


Resolved. Simply had to build the library without managed extensions..

"Sergey K." <sergei555_at_[hidden]> wrote in message
news:bnh3p1$dm6$1_at_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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net