Cant create texture2D class editor compile error

I get this error, have tried everything I could find online but nothing worked.

aditional info: if I create another type of class it still doesn’t work but if i create an empty class it works.
the .h file only contains the class declaration and the cpp file only has the 2 #include when created