I'm trying to compile a program which draws a house using the Command Prompt in Windows 8
#include "graphics.h"
int main(void)
{
drawRect(50,100,200,150);
drawLine(50,100,150,25);
drawLine(150,25,250,100);
drawRect(130,190,40,60);
drawRect(70,195,40,30);
drawRect(190,195,40,30);
drawRect(70,125,40,30);
drawRect(190,125,40,30);
return 0;
}
I saved it under the name house.c in the same folder as the application I'm going to use (drawapp.jar, graphics.c,graphics.h). When compiling it I used the command
gcc -o house house.c graphics.c
and it worked but when I wanted to run it using the command
./house | java -jar drawapp.jar
it showed the follwing error
'.' is not recognized as an internal or external command, operable program or batch file
The point is that this example works on Linux operating system using the terminal wondow but it doesn't work on Windows so I guess there's another command for running the program in Windows. Any ideas?