I've answered one of my own questions but still have a long way to go..
> When I set my libraries and DLLs to compile with option /MDd, which C
> Runtime Library should I expect to see in /dumpbin? libcmdd.lib?
The article at http://msdn2.microsoft.com/en-us/library/2kzt1wy3.aspx
answers this question.
Also, http://msdn2.microsoft.com/en-us/library/abx4dbyh.aspx is another
resource.
> Carl,
>
[quoted text clipped - 6 lines]
> set
> to "/MDd" and my librarian command line looks like the following:
OK, your project is set correctly. The next step is to check the settings
on every individual .cpp file in the project. Those settings can be
overridden on a file by file basis.
> /OUT:"Debug\native.lib" /NOLOGO /NODEFAULTLIB:"libcmtd.lib"
> /NODEFAULTLIB:"libcpmtd.lib"
I'm not sure that the /nodefaultlib option has any bearing on the lib
command (which is really just a wrapper over link /lib).
> When I set my libraries and DLLs to compile with option /MDd, which C
> Runtime Library should I expect to see in /dumpbin? libcmdd.lib?
You should see msvcrtd.lib
> As you can see, I've done enough searching/reading to know what my
> problem is. But every time someone has this sort of problem, the
[quoted text clipped - 4 lines]
>
> Can anyone please help me understand what my next steps should be?
-cd
John - 15 Aug 2006 21:05 GMT
> OK, your project is set correctly. The next step is to check the settings
> on every individual .cpp file in the project. Those settings can be
> overridden on a file by file basis.
Carl,
That was the problem. I didn't know that individual files could
overwrite the project-level setting! Some of them were - as you can
guess - set to /MTd.
After resetting every single file (groan) for /MDd, everything compiles
and links!
Thanks so much!
John
Carl Daniel [VC++ MVP] - 15 Aug 2006 21:45 GMT
>> OK, your project is set correctly. The next step is to check the
>> settings
[quoted text clipped - 9 lines]
> After resetting every single file (groan) for /MDd, everything compiles
> and links!
Glad it worked!
Those per-file overrides are really handy when you need 'em, but quite a
nuisance when you don't know they're there! There were problems with
project conversion from VC6 to VC7 (and 7.1, I think) that would sometimes
duplicate project-level settings as file-level settings, so if your project
was migrated from VC6 through VC7.x, that may be how those per-file settings
got in there.
-cd