Thanks eri, I asked back the original author, he said it wasn't needed anymore, so I just don't bother fiddling with it now.
Let's go to another question, (should I open a new thread?)
is that when I enclose certain things in a namespace say
Error 1 error C2039: members of the 'compressBound': '`global the namespace'' e: \ the dosbox_ykhwong \ src \ save_state.cpp 66 1 dosbox
Error 2 error C3861: the 'compressBound': identifier not found e: \ dosbox_ykhwong \ src \ save_state.cpp 66 1 dosbox
the ::compressBound is not recognized. Is it supposed to be within Util or the global namespace.
If you have already used that before, it is called the zlib, it is also very common in IT industry. Just some compression stuff.
I am compiling the ykhwong build of dosbox.
Thanks
Jack
Thanks eri, I asked back the original author, he said it wasn't needed anymore, so I just don't bother fiddling with it now.
I can hardly imagine that would ever have compiled under any version of the C++ or C standard, except perhaps it's some really funky and hard to comprehend "pattern" defining a macro within a macro expansion (what I somehow doubt is possile at all). And all that would heavily depend on the definition of the _CRT_WIDE macro which no-one around here except you may know by now.
As to the rest of your post: No-one can tell anything from that incomplete code snippet of yours. Not only that super short code snippets like this hardly ever are compilable in general, yours also suffers from unbalanced braces.
And no, I, myself, didn't ever use zlib.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
the ::compressBound is not recognized. Is it supposed to be within Util or the global namespace.
If you write ::compressBound, it must be declared in the global namespace. If it is declared either in namespace Util or in the global namespace, then drop the colons.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Bookmarks