Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2004

Tip: Looking for answers? Try searching our database.

Command line warning D4025 : overriding '/EHs' with '/EHa'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brett - 24 Sep 2004 05:56 GMT
I have recently purchased Visual C++ . Net compiler and i am trying to
compile a project that i had working in Visual C++ 6.0.

When I compile, I am receiving the warning:

cl : Command line warning D4025 : overriding '/EHs' with '/EHa'

I have specifically asked for the /EHsc switch because that is what I
require.

Is there anyway that I can get it to compile in this way?

Thanks,
Brett.
William DePalo [MVP VC++] - 24 Sep 2004 15:17 GMT
>I have recently purchased Visual C++ . Net compiler and i am trying to
> compile a project that i had working in Visual C++ 6.0.

OK.

> When I compile, I am receiving the warning:
>
> cl : Command line warning D4025 : overriding '/EHs' with '/EHa'
>
> I have specifically asked for the /EHsc switch because that is what I
> require.

Are you using Win32's structured exception handling
(__try/__except/__finally) or using a structured exception translator (
_set_se_translator() )  in that project?
If you are, then the compiler knows better. :-)

> Is there anyway that I can get it to compile in this way?

Perhaps. You might want to post a little information as to why you can't use
/EHa. Someone may be able to suggest something.

Regards,
Will
Ronald Laeremans [MSFT] - 24 Sep 2004 22:26 GMT
You normally only get this when you specify both /EHc and /EHa. Can you
provide the full command line? And let us know what version of the compiler
it is (7.0 or 7.1)?

Thanks.

Ronald Laeremans
Visual C++ team

>I have recently purchased Visual C++ . Net compiler and i am trying to
> compile a project that i had working in Visual C++ 6.0.
[quoted text clipped - 10 lines]
> Thanks,
> Brett.
Brett - 27 Sep 2004 01:16 GMT
I see the problem now, the old project had /EHa added (by hand) to the
command line, when I imported it into the new environment (7.1.3088),
it defaulted to the /EHsc option as well as using my additional
switch. This then caused the conflict when I compiled.

One small point with the new environment is that I can't select a /EHa
option from the project options. I can write in the edit control, but
that info isn't kept. I've just selected no exceptions, and added /EHa
to the additional command line switches.

Brett.

> You normally only get this when you specify both /EHc and /EHa. Can you
> provide the full command line? And let us know what version of the compiler
[quoted text clipped - 19 lines]
> > Thanks,
> > Brett.
Ronald Laeremans [MSFT] - 27 Sep 2004 04:34 GMT
I am glad you got it resolved.

On you small point. Yes that was a (design) bug we had in VS 2003. /EHa is
back in the project options for VC 2005. The workaround you applied is the
best one.

Ronald

>I see the problem now, the old project had /EHa added (by hand) to the
> command line, when I imported it into the new environment (7.1.3088),
[quoted text clipped - 32 lines]
>> > Thanks,
>> > Brett.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.