error: invalid preprocessing directive #Include

BlitzMax Forums/BlitzMax Programming/error: invalid preprocessing directive #Include

ErikT(Posted 2015) [#1]
I get this at the first line "#Include <windows.h>" when I try to compile a program with an imported .c file. I got mingw and the Windows SDK installed with PATH variables for mingw set up and everything. Is there anything else I need to do here?


Henri(Posted 2015) [#2]
Include in C needs to be in lower case.

-Henri


ErikT(Posted 2015) [#3]
Oh, the IDE corrected it for me :P Thanks!


Brucey(Posted 2015) [#4]
It usually happens when you create the c/c++ source file in the IDE and start coding in it right away. By default the IDE thinks you are writing BlitzMax code.
I usually just close the file and reopen in the IDE and then it is recognised correctly as not BlitzMax source.