I have compiled an C++ program with g++ on Linux. The program works with OpenGL, so I don't need any console output. I just need it to run with a double-click from the user, but when trying to do this, I get:
Could not display "/home/jeanc/myprogram/myprogram.bin".
The file is of an unknown type
When I run
file myprogram.bin, I get:
myprogram.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
I also tried giving it execution permission, but I did not work.
What happens when you double-click on a file is entirely the domain of the file manager you're using. I'd check its settings to see if it's been told that .bin files should be opened with another program rather than executed.