Re: Namespace problems when compiling (xutility)
- From: "Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
- Date: Sun, 3 Jul 2005 21:26:10 -0700
Ryan Rosario wrote:
> I am trying to compile my project with MTL (Matrix Template Library)
> and I am having a lot of problems with a line in the xutility file.
>
> Just including the headers and namespace for the library produces 45
> errors. I have found very little about this on Google, although it
> appears to be specific to .NET. I imagine my settings are wrong? Or
> possibly a bug?
>
> The calling code:
>
> #include <iostream>
> #include <mtl/mtl.h>
> #include <mtl/matrix.h>
> #include <mtl/utils.h>
> #include <mtl/linalg_vec.h>
> #include "CImg.h"
>
> using namespace std;
> using namespace mtl;
> using namespace cimg_library;
> ...
It appears that you haven't #included <iterator>, but were relying on
<iostream> to include it for you. There's no guarantee that any standard
header automatically includes any other stsandard header.
-cd
.
- References:
- Namespace problems when compiling (xutility)
- From: Ryan Rosario
- Namespace problems when compiling (xutility)
- Prev by Date: Re: FYI: Inserting "#undef UNICODE " at a beginning of a file is not always enough
- Next by Date: Re: import library not being created when dll is built
- Previous by thread: Namespace problems when compiling (xutility)
- Index(es):
Relevant Pages
|