?
Solved

Missing "exception." header file

Posted on 1998-12-02
6
Medium Priority
?
195 Views
Last Modified: 2010-04-02
I'm trying to compile samples from a book called "Systems programming for Windows 95" by Walter Oney.
I finally got my hands on VC++ 4.2 although the author originaly used 4.0

When I'm compiling one of the plain exe files, I get an error message which can't find a file called "exception" in my include directories. The file is refered to in another include file called "new" which is called from "new.h".

I don't have the "exceptions" files anywhere.

Please help.
0
Comment
Question by:ssite
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1179085
the exception include file is part of the standard library.  It would have been added to the library somewhat more recently.  Is the new and new.h files you are using the ones that were shipped with VC 4.2?  You don't want to be using a version of the standard library that was not shipped with the compiler.  (Unless you know it can support it, which would be unussual.)

You might try reinstalling VC 4.2 to see if it installs the file.
0
 
LVL 1

Author Comment

by:ssite
ID: 1179086
Thanks for the info. I've installed 4.2 TODAY in a folder which didn't exist before. I think I even did it after installing MASM.

Could you do me a HUGE favour ?? Could you zip your "include" folder (of VC4.2) and send it to me at ssite@netvision.net.il

It should zip up to a small size.

Thanks,
ssite.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1179087
Sorry, I have VC 5 and 6, but not 4.   the include for 5 probably would not work on 4.2  (I'm willing to try if you want, but I really think it would be a waste of time.)

Are you compiling from the command line?  If so did you run the vcvars32.bat file?

In my new (or new.h) include the line that included <exceptions> was in some #if code.  Is it in yours?  Can you prevent inclusion of <exception> by fooling with the variables the if depends on?

Did you confirm that the new and new.h files it is finding are the ones that came from VC 4.2?  If you have other versions of C++ installed it might be finding files from them.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:ssite
ID: 1179088
Thanks, nietod. I solved it. It was a bad installation CD of 4.2 which failed on that specific file.

What a drag for wasting time. It compiles o.k. now.

Answer the question for your points.

Thanks,
ssite.

0
 
LVL 22

Accepted Solution

by:
nietod earned 200 total points
ID: 1179089
Thanks.
0
 
LVL 1

Author Comment

by:ssite
ID: 1179090
Here they are :-)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question