Sunday, July 12, 2009

Does we need turbo c software to run turbo c exe file?

Hmmm sounds wierd! I wrote a program called chart.c in turbo c which is two header files like bimap.h ,xyz.h.When I compile,chart.exe is created.when i run chart.exe in some other machine, its not running unless tc sofware and those two header files is placed in the system.Can anyone tell me why it happens and how to make one single exe file without all these headerfiles and tc sofware.





Thanks in advance

Does we need turbo c software to run turbo c exe file?
I think u may have to carry only the two header files.
Reply:kumarango... when you compile your code you must use independent source library. so when you compile the source the code will have certain flags and library built in. Assembler pointer must be made at start of your code.
Reply:Once you have your .exe file you should be able to execute it on any PC. You don't need to copy all the other files, they are just needed from your compiler to build the .exe file.
Reply:Your header file might be compiled as an extended object library of your exe file. This means that whenever you run chart.exe, it will look for its extended library which are your header files. To solve this, check your header decleration.
Reply:you need to make sure that it compiles those two header files inside the .exe file

rosemary

No comments:

Post a Comment