Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem migrating from C-Script to Lite-C #157685
09/29/07 09:52
09/29/07 09:52
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi everybody,

I'm currently migrating my game project from A6 to A7 from C-Script to Lite-C. After migrating all .wdl-files to .c step by step I'm getting the following error when starting A7:

-------------------
machine code generator: can not translate EQ:POINTER:FIXED:LONG

<
if (panAtStart == 0) {
>
-------------------

panAtStart is defined as:

var panAtStart = 0;

Can anybody help me?

Regards,
PGM.

Re: Problem migrating from C-Script to Lite-C [Re: pegamode] #157686
09/29/07 11:03
09/29/07 11:03
Joined: Oct 2002
Posts: 361
Germany Cologne
hack-panther Offline
Senior Member
hack-panther  Offline
Senior Member

Joined: Oct 2002
Posts: 361
Germany Cologne
Code:

#include <default.c>
#include <acknex.h>

var panAtStart = 0;

function main()
{
level_load("level.wmb");
video_set(1440, 900, 32, 1); //Video Settings
wait(1);

if(panAtStart == 0)
{
wait(1);
}
}



I have no Problems with this...

Have you included default.c and acknex.h?
Or perhaps you have forgotten a semicolon at the upper line!?!?

When not: can you post a bigger part of the code?



Re: Problem migrating from C-Script to Lite-C [Re: hack-panther] #157687
09/29/07 11:31
09/29/07 11:31
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
I found the mistake. I had a double definition of the variable panAtStart in another included .c-file. There panAtStart was defined as ANGLE*.

Regards,
PGM.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1