Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Intel C++ Compiler for windows

kalyanka
Beginner
519 Views
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
Why is this happening?Can anyone help me in this?
0 Kudos
1 Reply
cp_jain
Beginner
519 Views
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
0 Kudos
Reply