Registered Member
|
This code doesn't compile under VC2010 (while under g++-4.4 everything is fine)
My eigen version is 3.04 stable Here is the error message. On this windows machine I have boost_1.46.1 while on my linux box boost_1.46
Thank you! |
Moderator
|
this is clearly a bug on VC2010 since it fails on the supposed re-declaration of a local variable. Perhaps you could try to separate Eigen and boost code to workaround the problem.
|
Registered Member
|
I can't separate it...
A simple main of this kind doesn't compile, only because boost is in the included directory!
The problem is that I must include boost in my project...what is the typical method to separate from boost? (if this makes sense..) |
Registered Member
|
I probably solved the issue.
The problem was caused by the directive using namespace boost::filesystem; in another part of the code. The solution is to specify for every function in the namespace boost::filesystem its complete signature, for example: boost::filesystem::exists( bla bla bla) instead of using that namespace globally... |
Moderator
|
hm I don't get it, you say that even without #include of boost, but only by adding boot/ in the include path you get the error? That does not make sense. Also I don't understand then how removing "using namespace boost::filesystem;" could fix the issue since there is no such directive in your example.
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]