I made my first program in C without any problems at all at my first try, now that I want a new workspace and a new project, it goes south before I've even written anything.
#include <stdio.h>
int main(int argc, char **argv)
{
printf("hello world\n");
return 0;
}
The code above should just print out "hello world". Instead, I get the following error code:
C:\Users\DavidH\Desktop\bingolotto\main.c:1
(function (exports, require, module, __filename, __dirname) { #include <stdio.
^
SyntaxError: Unexpected token ILLEGAL
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
Press any key to continue . . .
I'm guessing I've got some faulty directories or something similar, but I've made new workspaces and tried at least two new projects to no prevail.
I'd really like to know what's going on here :)