.exe file created by c programming through gcc compiler isn't executing.
Asked by
Dharmesh Patadiya
I am new in linux. I am using ubuntu 12.04 LTS. I am writing c program which contains math. I am creating executable file through the command:
gcc -o filename.exe filename.c -lm
this will create a filename.exe file. I can now execute it through terminal command:
./filename.exe
I have laptop. It has ubuntu 11.04. These sequence of commands works well in my laptop. But if same file I copy in my desktop, which is ubuntu 12.04 LTS, and then runs then it doesn't work. I searched in internet. One solution I got is:
chmod -R 777 /media/partition where partition is ntfs type.
This will change the partition to rw mode. But this is also not solving my problem.
Please help me.
Patadiya Dharmesh M.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu wine Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dharmesh Patadiya
- Solved:
- Last query:
- Last reply:
To post a message you must log in.