Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Problem With Generating Standalone Program?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Fexter




PostPosted: 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.

Turing:


% Dodge the walls that are coming towards you.



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?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
trishume




PostPosted: 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 Wink
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: