If it is running on the linux server, you need to use the path on the linux server. You can use pwd
to print the working directory (which will give you the absolute path that you are currently in). Also you can use a relative path with ..
to go up a directory. For example your directory structure may be like this
code/
main.cpp
main.h
a.out
images/
yourimage.png
So you could do:
$ pwd
/home/user/code
and then your absolute path to the image would be
/home/user/images/yourimage.png
Or you could use a relative path from the code directory
../images/yourimage.png