THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/03/2003 at 10:53, xxxxxxxx wrote:
I know this, but am not certain about the stability. For instance, right now, I'm getting an error on compile:
error C2065: 'DC' : undeclared identifier
for all of my original classes (DC is in c4d_tools.h). Why? I have created a separate class for zlib (with no references to c4d.h whatsoever) and make only one reference to zlib.h (in that class) and this occurs. If I remove the zlib lib and class, everything compiles/links perfectly, flawlessly as before.
Again, I know how to program. I don't know how to get around these conflicts between libs (which is one reason why I moved away from C/C++, and especially 3rd party libs, to Java - no conflicts or they are extremely rare).
You can't tell me that mixing 3rd party libs is not an ongoing, ever-present pain in the ass. It was ten years ago and is obviously still. This is why I never completed 3D graphics programs for MSDOS some time ago. All of the 3rd party libs conflicted and, buf of course, when discussing these issues with the lib creators, it's the other guy's fault. I hate to rant, but the idea here was to move away from programming to 3D CG. For this plugin effort, I don't mind as much, but if I have to spend six months (my entire spring and summer) indoors trying to make a single function work without resolutions, I remember painfully why I'm moving in the first place. I despise sitting 10-12-16-20 hours a day in front of a computer trying to trace esoteric errors and fix problems not induced by me (note that - these aren't my errors and, being lazy by nature, I don't intend on fixing them for them). Don't mind normal errors caused by myself.
This could be a problem with the zlib lib and not the includes. (?) I'd hate to have to recompile it along with my plugin code. Do you use the lib or the dll? Have you recompiled the code for the static lib? Is there some MSVC setting that needs to be set or unset? I'm not a mind reader and errors like the one above leave little to fish for (and I don't like fishing either). ;)