- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Iam using Intel C++ Compiler for VC++ 6.0 for compiling the
ATL Project and when i compile it
it shows
C:Program FilesMicrosoft Visual StudioVC98ATLINCLUDEatlwin.h(19): catastrophic error: #error directive: atlwin.h requires atlbase.h to be included first
#error atlwin.h requires atlbase.h to be included first
#error atlwin.h requires atlbase.h to be included first
Why is this happening?Can anyone help me in this?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Have you looked at atlwin.h file -
you must have something like this in atlwin.h -
#ifndef __ATLBASE_H // macro name could be different - basically to make sure that atlbase.h is included
#error atlwin.h requires atlbase.h to be included first
#endif
As a workaround you may try adding
#include "atlbase.h"
before this "#ifndef ... " statement.
There must be better workarounds, this is just to make it work.
HTH,
CP
Have you looked at atlwin.h file -
you must have something like this in atlwin.h -
#ifndef __ATLBASE_H // macro name could be different - basically to make sure that atlbase.h is included
#error atlwin.h requires atlbase.h to be included first
#endif
As a workaround you may try adding
#include "atlbase.h"
before this "#ifndef ... " statement.
There must be better workarounds, this is just to make it work.
HTH,
CP
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page