Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Visual C - error

Posted on 1998-12-15
4
Medium Priority
?
1,113 Views
Last Modified: 2013-12-14
When tring to compile a C file in a console app. in Visual C++ 5.0 I got the following error:
excpt.h(31): fatal error C1189: #error : ERROR: Use of C runtime library internal header file.
What is it and can I fix it?
0
Comment
Question by:s_lavie
[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
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
NakedTimeMan earned 100 total points
ID: 1255152
Hi s_lavie,

the problem is that you are using "#error" on your define section, and telling it to use an undefined define....  let me see if I can clear that up for you...

As you can see on the next example _MYDEF is UNdefined and then is referenced by the #error clause and the linker cant find it.

either #define the _MYDEF or take the #error out

#undef _MYDEF

#if !defined(_MYDEF)
#error _MYDEF // must be defined !!
#endif

int main() {
    return 0;
}

Take care
NakedTimeMan
0
 
LVL 2

Author Comment

by:s_lavie
ID: 1255153
Hi NakedTimeMan,
I'm not sure i was clear, but the header file excpt.h is not my file, but the "Visual"'s file. No way I made undef to something, it must be a problam of my enviornment definitions, I guess, isn't it?

0
 
LVL 1

Expert Comment

by:NakedTimeMan
ID: 1255154
Hey s_lavie

Well, there are 2 things that you might want to try, first try to add #include <fpieee.h> before the line where excpt.h is included.

if this doesnt work... is it necessary that you include excpt.h? can you try comenting out that line and recompiling?

I looked at the file excpt.h and unless you are trying to write your own exception hanlding routines doesnt look like you are going to need anything in that file...

Take care,
NakedTimeMan

0
 
LVL 2

Author Comment

by:s_lavie
ID: 1255155
Hi NakedTimeMan,
I probably had a problem in the instalation - I reinstaled the compiler, and it goes fine. I don't no what caused that problem, but I'm OK for now.
Thanks      
0

Featured Post

Technology Partners: 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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
Suggested Courses

618 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