if the file IS A SAFE ONE,AND I DO MEAN A SAFE file for you to run ( ie YOU WROTE it)
then do this because it is not a c source file but a shell script
open the terminal and do this
Code:
cd /to where/the/file/is
sh ./FileName
for example i have a nice script to cut a 32,768x16384 pixel image into a gruop of 512x512 px tiles
and it is in the system path so i do this
Code:
cd /usr/opt/PlanetMaps/Moon/Clem_NIR_V0.1
v_vt moon.v 512 png
the program name is "v_vt " fallowed by the options
Quote:
|
I have a text file that when i open it it says that its an executable file (its c++ code so it should be)and...
|
WHAT is the file, i am assuming you did not wright it ?
Were did you get it ?
and what is it supposed ti do ?
post the code or a link to the file
Quote:
|
I also know the program should work as it does work on my win xp comp running borland 5.5.
|
so is this a bit of
MS Windows code you want to build on a linux box ?
this may be easy or imposable without a FULL rewright
post the code
to build a single c file program
Code:
gcc -o file file.c
g++ -o file file.cpp