Re: Namespace problems when compiling (xutility)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: Offline Tutorial
    ... program which won't compile under C++ compiler? ... int main ... "namespace" was used as a struct tag in a header, ... and referring to RXP_NAMESPACE throughout the header. ...
    (comp.lang.c)
  • Re: Flat File Problem
    ... It was the namespace I was using to ... When I debug the orchestration the RecCount variable is null. ... Have you deployed the Biztalk Assembly that contains the property schema ... And you can promote properties from the Header into the message context, ...
    (microsoft.public.biztalk.general)
  • Re: namespace and c++ headers in wince
    ... I have used an external header and cpp file which uses namespace std ... Namespaces are fine with the compiler and your code is ...
    (microsoft.public.windowsce.app.development)
  • Re: Newbie and seventy-two-bie, please help.
    ... are using or bring the names into the global namespace. ... Prefer putting each declaration on its own line and adding a comment for ... definition goes into a header file called for example pool.h and rest goes ... mainalways returns an int. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Visibility inside a colon definition
    ... That namespace can be in the same memory allocated ... SMUDGE bit means that the traditional four types of header ... ...
    (comp.lang.forth)