+ 2
Pragma ( preprocessor directive) is not working
3 Answers
+ 5
if its not working, maybe it because pragma were introduced on c++11 standard library. Make sure you use c++11 or later version to make it working. Other than that, maybe you can use ifndef... (it was same as pragma)
Example:
#ifndef CLASS_H
#define CLASS_H
//Some code
#endif
+ 2
Where's your code ?
+ 1
thank u Miya , yup maybe this is the reason