Solved

Missing "exception." header file

Posted on 1998-12-02
6
191 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
Industry Leaders: 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 50 total points
ID: 1179089
Thanks.
0
 
LVL 1

Author Comment

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

Featured Post

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IdTCPClient1->Disconnect(); not working 3 91
Arduino EDI - Programming language 3 124
Create a path if not exists 7 123
c++ reading data from file into two dimensional array 3 148
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

737 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