Patch for C++ on MS Visual Studio 2005
Brought to you by:
fagiano
MS Visual Studio 2005 doesn't seem too impressed with
extern "C" {
#include "trex.h"
}
and still compiles with C++ name mangling causing linker errors.
The fix is to place wrap the entire trex.h conditionally with extern "C" { } when __cplusplus is defined. Both should work, but MS is broken, so, apply the attached patch if having trouble.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Moves extern "C" { } from TRexpp.h to trex.h