Click here to Skip to main content
15,887,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I am including below files in my project.

exec\msvc140_64\include\rw\config\rwconfig_tls.h


definition of rwconfig_tls.h header file

#include "rwconfig.h"

#if defined(_RWCONFIG_12d)
#include "rwc_tls_12d.h"
#elif defined(_RWCONFIG_15d)
#include "rwc_tls_15d.h"
#else
#error "No _RWCONFIG_<tag> found"
#endif


on compile i get below error.


Error:

fatal error C1189: #error :  "No _RWCONFIG_<tag> found"


anybody has any idea? pls suggest

What I have tried:

RW 10 in vs2010 problem[^]

did not work for me.
Posted
Updated 5-Jul-17 7:28am

1 solution

Yes: Read the error message and analyze the code.

C++
#if defined(_RWCONFIG_12d)// <== not defined !!!
#include "rwc_tls_12d.h"
#elif defined(_RWCONFIG_15d) // <== not defined !!!
#include "rwc_tls_15d.h"
#else
#error "No _RWCONFIG_<tag> found" // <== your output
#endif

Conclusion: you must decide whether to use the version 1.2 or 1.5 of that framework, with
C++
#define _RWCONFIG_15d 1

or in the project settings of C++ in some header before including this problematic code.
 
Share this answer
 
Comments
joyjhonson 6-Jul-17 9:48am    
Thanks..you are write. When I included _RWCONFIG_12d in preprocessor def it worked.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900