B
Beman Dawes
This little program:
#include <iostream>
int main()
{
#ifdef _CPPRTTI
std::cout << "_CPPRTTI is defined as " << _CPPRTTI << "\n";
#else
std::cout << "_CPPRTTI is not defined\n";
#endif
return 0;
}
Works as expected when compiled from the command line. /GR determines
which version of the code is selected.
From the IDE (7.1 retail product), the output is always "_CPPRTTI is
not defined", regardless of the setting of the Property | C/C++ |
Language | Enable Run-Time Type Info.
Looking at the Property | C/C++ | Command Line | All Options: I can
see that /GR is shown, but appears to have no effect. If /GR is added
via the Additional Options, the program then outputs "_CPPRTTI is
defined as 1".
Is this a known bug?
--Beman
#include <iostream>
int main()
{
#ifdef _CPPRTTI
std::cout << "_CPPRTTI is defined as " << _CPPRTTI << "\n";
#else
std::cout << "_CPPRTTI is not defined\n";
#endif
return 0;
}
Works as expected when compiled from the command line. /GR determines
which version of the code is selected.
From the IDE (7.1 retail product), the output is always "_CPPRTTI is
not defined", regardless of the setting of the Property | C/C++ |
Language | Enable Run-Time Type Info.
Looking at the Property | C/C++ | Command Line | All Options: I can
see that /GR is shown, but appears to have no effect. If /GR is added
via the Additional Options, the program then outputs "_CPPRTTI is
defined as 1".
Is this a known bug?
--Beman