Wednesday 21 September 2011

Why is it when i run my turbo c program in other computers it doesn't run?

each time i run a turbo c program(saved in flash drive) in a computer without turbo c it always give an error message %26quot;unable to create output file 'c:\turboc~1\filename.obj'.i change the directory to %26quot;c:\turboc~1%26quot;

but it still the same, the program always gave me that error message.



Hope you help me....
Why is it when i run my turbo c program in other computers it doesn't run?
when you plug in your flash drive on your pc it gets assigned a letter - maybe E: or F: Try this - when you installed the program it became somewhat dependant on its specific location.

uninstall the program change the drive letter to X for the flash drive. reinstall the turbo c program like b4. but on X obviously.

then open the program change the output file save location to X as well...when you put your drive in a friends pc change the letter to X for the drive...then use it



the above is experimental not the absolute solution...
Why is it when i run my turbo c program in other computers it doesn't run?
Haven't a clue, here are some ideas of mine::

Are you sure it is your program you are trying to run and not part of the compiler.



%26quot;c:\turboc~1%26quot; does that exist on the computers it works on? If so try renanaming it to something else like %26quot;c:\tc%26quot;



Do you have the appropriate permissions?



The tilde setup like ~[1-9] are the shortented forms of long directory names. So try creating the full length name instead of c:\turboc~1



Any odd environmate varible values?



Try running it in a pure dos environment if it is dos based(eg dosbox)



Hope this helps or pokes you in the right direction.
I guess you have to install turbo C libraries into that other computer