Computer Science Canada Problem With Generating Standalone Program? |
Author: | Fexter [ Sat Nov 05, 2011 10:29 pm ] | ||
Post subject: | Problem With Generating Standalone Program? | ||
What is it you are trying to achieve? I'm trying to make a standalone program. What is the problem you are having? Once I make the program, it shows me 'Bad object file header in "Game.exe". (2)' Describe what you have tried to solve this problem I've tried running my code without the standalone program, but have no problems with it. I've also tried recompiling it, but that's not working either. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) Although I'm unsure of what the 2 in brackets is, line two is a comment - It shouldn't be affecting the code at all.
Please specify what version of Turing you are using I am using Turing 4.1.1. What does the text it gave me mean? Is there a difference between how standalone programs work and running it from the programming works? |
Author: | Tony [ Sat Nov 05, 2011 10:41 pm ] |
Post subject: | RE:Problem With Generating Standalone Program? |
Use Turing 4.1 instead, this is a known problem for 4.1.1 |
Author: | trishume [ Sun Nov 06, 2011 8:59 am ] |
Post subject: | Re: Problem With Generating Standalone Program? |
This is because the standalone executables are generated by tacking bytecode on to the end of TuringEXEProlog.prg. Bad things happen if TuringEXEProlog.prg is not recompiled when turing.exe is. Newer versions will not have this problem as I just fixed it last night ![]() |