[GD-Windows] operator delete linker hell
Brought to you by:
vexxed72
From: Brian H. <bri...@py...> - 2002-06-22 17:23:45
|
I have my own globally defined operator delete and new which allocate from a custom heap, do memory tracking, etc. etc. Works great in my GUI app, not a problem. Now I'm using my same libraries with a console app, and I'm getting a linker error saying that operator delete() is multiply defined. After doing a lot of Google and KB searching, it looks like a link order problem, but I've tried everything suggested on-line to fix it. The specific suggestions are to remove libcmtd.lib from the default libs (i.e. put it in ignore libs) and then add it back in the object/library modules setting in MSVC6. I've tried that to no avail. I've done /verbose:lib to see the output of the linker, but it's pretty much meaningless to me -- it shows me what it's searching, but there doesn't seem to be anything else relevant in there (and it searches the same libs multiple times). So, any ideas what else I can try to make this link. This is _supposed_ to work, and it has worked for me on my other projects, but for some reason it's just getting pissy with this. I've double checked to make sure I'm linking to the correct libraries consistently (LIBCMTD.LIB), etc. Thanks, Brian |