Microsoft C 5.0 help?

Patrick McCarthy mccarthy at well.UUCP
Sat Mar 19 16:57:35 AEST 1988


In article <77200024 at uiucdcsp> tsmith at uiucdcsp.cs.uiuc.edu writes:

> Microsoft C 5.0 Users?
>      I'm having trouble compiling with the large model
> of the MS C 5.0 compiler.  I need the large model because
> I want to use the /Zi compiling parameter and the /co
> linking parameter to put debugging info into the .obj and
> the .exe files to be used by CodeView.  Is there anyone
> that has been successful in using other than the default
> /AS small model?

First off, you don't need the large model to use the /Zi and /CO
switches; these will work in any memory model. Secondly, and probably
most importantly, it would be helpful to know what your symptom is.
Are you getting compiler/linker errors, does your program crash,
or what? Your problem could be anything ranging from linking modules
compiled under different memory models (be especially careful when
specifying third party libraries in your link statement) to assigning
data to an uninitialized pointer. Until you can provide more information
(like what your code is supposed to do vs. what it actually does/does
not do under the various models you've tried), attempts at diagnosis
would just be shots in the dark. Specific information on your compile
and link statements, as well as a (small) code fragment would go a long
way.

Pat McCarthy
well!mccarthy at lll-crg.arpa
mccarthy at well.uucp

"Ask Dr. Science: He knows more than you do



More information about the Comp.lang.c mailing list