WinXP compiler question

How do you prevent the compiler to ignore a build warning and to generate
the executable for a driver.

I run “build -cZ”
I have a warning that I don’t even want to attempt to fix unless I really
have to.

I get an error LNK1218: warning treated as error; no output file generated

What’s the option to ignore this error?

Thanks In Advance,
Joe


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Fix your code. The whister XP ddk settings are much stricter. This is on
purpose. The real problem is that earlier ddks permitted really sloppy
programming practices.

OK I’ll get off the freaking soapbox.

To answer your question, you can try

MSC_WARNING_LEVEL=whatever you want

In your SOURCES file. If this doesn’t work it is because of the embedded
‘warnings.h’ nonsense, in which case you will have to plonk counter pragmas
into all of your source files. It would be much easier to FIX YOUR SOURCE
CODE.

-----Original Message-----
From: Joe Moriarty [mailto:xxxxx@east.sun.com]
Sent: Thursday, June 14, 2001 2:20 PM
To: NT Developers Interest List
Subject: [ntdev] WinXP compiler question

How do you prevent the compiler to ignore a build warning and to generate
the executable for a driver.

I run “build -cZ”
I have a warning that I don’t even want to attempt to fix unless I really
have to.

I get an error LNK1218: warning treated as error; no output file generated

What’s the option to ignore this error?

Thanks In Advance,
Joe


You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I advice to ignore that warning only if u know well about, why warning is
comming.

Better options is fixing the warning.

Regards,
Satish K.S

----- Original Message -----
From: “Joe Moriarty”
To: “NT Developers Interest List”
Sent: Thursday, June 14, 2001 11:50 PM
Subject: [ntdev] WinXP compiler question

> How do you prevent the compiler to ignore a build warning and to generate
> the executable for a driver.
>
> I run “build -cZ”
> I have a warning that I don’t even want to attempt to fix unless I really
> have to.
>
> I get an error LNK1218: warning treated as error; no output file generated
>
> What’s the option to ignore this error?
>
> Thanks In Advance,
> Joe
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@aalayance.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I think ur warning level is currently to treat warnings
as errors.
It’s do with warning level set in ur environment, in
sources file. It’s the setting for linker . Set ur
warning level to -W3 in the linker flags it may work.


Girish H.

I advice to ignore that warning only if u know well about, why warning is
comming.

Better options is fixing the warning.

Regards,
Satish K.S

----- Original Message -----
From: “Joe Moriarty”
> To: “NT Developers Interest List”
> Sent: Thursday, June 14, 2001 11:50 PM
> Subject: [ntdev] WinXP compiler question
>
>
> > How do you prevent the compiler to ignore a build warning and to generate
> > the executable for a driver.
> >
> > I run “build -cZ”
> > I have a warning that I don’t even want to attempt to fix unless I really
> > have to.
> >
> > I get an error LNK1218: warning treated as error; no output file generated
> >
> > What’s the option to ignore this error?
> >
> > Thanks In Advance,
> > Joe
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@aalayance.com
> > To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@att.net
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Don’t ignore it. Look at either bldchk.log or bldfre.log to find
out specifically what the error is and fix it!

Odds are you’ve got a typo in your code, and you’re referencing an extern
symbol
that isn’t there.

Scott

From: “Joe Moriarty”
> How do you prevent the compiler to ignore a build warning and to generate
> the executable for a driver.
>
> I run “build -cZ”
> I have a warning that I don’t even want to attempt to fix unless I really
> have to.
>
> I get an error LNK1218: warning treated as error; no output file generated
>
> What’s the option to ignore this error?


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com