>Heya. I have a header file that looks similar to this:
>
[quoted text clipped - 29 lines]
>compiler looking for it way up in the "mupdf" namespace? What am I
>doing wrong?

Signature
Doug Harrison
Visual C++ MVP
> Types that are first encountered in declarations such as this interpreted
> as living in the enclosing namespace. To solve the problem, forward declare
> the type:
Thanx. That should be what I needed to know.
> That said, I don't know why you don't go with the
> simpler:
[quoted text clipped - 24 lines]
> Doug Harrison
> Visual C++ MVP
Well, I'm actually writing a wrapper for a library somebody else made,
and that's how they set up most all their structs. I'm not sure their
reasoning for the alias, but I figured I'd use it just in case it's
important ;-).
SigmaX
Ben Voigt - 09 Apr 2007 15:11 GMT
> Well, I'm actually writing a wrapper for a library somebody else made,
> and that's how they set up most all their structs. I'm not sure their
> reasoning for the alias, but I figured I'd use it just in case it's
> important ;-).
Is that library perhaps written in C, not C++? In that case, you'd have to
specify "struct Blah" everywhere, the typedef allows you to avoid needing
the keyword "struct" everywhere. But C++ doesn't need the extra "struct",
even without a typedef.
> SigmaX