Solved

Missing "exception." header file

Posted on 1998-12-02
6
187 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
  • 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

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 67
computer science syllabus 3 83
sorting efficency of sorting algorithm 30 113
Problem with SqlConnection 4 170
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

803 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