|
-
July 16th, 1999, 11:33 AM
#1
#ifdef's and #include's
Can someone please explain to me why you can't have #include statements within a #ifdef #else # endif conditional structure in Microsoft C++ ver. 6.0?
example:
#ifdef LEGACY_CODE
#include "first.h"
#include "second.h"
#else
#include "third.h"
#include "fourth.h"
#endif
The compiler gives the error 'fatal error C1020: unexpected #else'.
This is the first time I attempted to do this so I am not sure if this is just MS compilers or all C++ compilers in general.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|