SDL_RWFromFile is not work in ubuntu 18.4

SDL_RWFromFile(“myimage.bmp”, “rb”) is not work in ubuntu 18.4.
We must pass full path: SDL_RWFromFile("/home/userxxx/Projectxxx/myimage.bmp", “rb”)

if you don’t specify the whole path, it will use the path relative to the current working directory.
You can use getcwd() to find out what the current working directory is.