So I have this school folder, where I have to call the file "Test.c" file, where it contains the code to display an image. Calling the file requires me to type "make", which im assuming is from this file called MakeFile in the terminal where it would print.
gcc -std=c99 -g -Wall -O3
pkg-config --cflags x11
-o test test.c imgops.c draw.c png.c -lm -lpngpkg-config --libs x11
but when I have to call the Test file, "./test", it gives me the error
Grey Array: cannot connect to X server '(null)
I'm really new at coding in C and using Ubuntu, but I cannot find an answer to this error. If anyone can help, I'll greatly appreciate it!
EDIT: Also, it should be displaying a new window, with a completely black image
EDIT: I retyped some parts of the details of the problem, and added the code of the test.c where it contains the code for the complete black image. I'm also doing this in Windows Powershell and using Ubuntu within it