Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,731 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Lite-c programming doesn't work! [Re: Marc_Gagne] #231792
10/16/08 23:45
10/16/08 23:45
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Notice in the error log that it says the error is in ATEST.WDL.
That means that your file has (at least once) been saved as a *.WDL file instead of the required *.C file.
The script editor is a bit awkward this way. The fix is this simple.

In SED, click FILE / SAVE.AS and when the dialog comes up,
type in ATEST.C and hit enter. Its now SAVED correctly.

NEXT you will need to use windows to go the folder where it lives and delete the *.WDL version of ATEST.
(Annoying note: If there exists a *.wdl that matches its name to your *.c file,
it will automatically be included and usually causes errors)


Then try running your *.c file again and it should work.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Lite-c programming doesn't work! [Re: EvilSOB] #231794
10/16/08 23:51
10/16/08 23:51
Joined: Oct 2008
Posts: 58
Marc_Gagne Offline OP
Junior Member
Marc_Gagne  Offline OP
Junior Member

Joined: Oct 2008
Posts: 58
Oh thank you, thank you, thank you! It worked, it worked, it worked!!!! I've been working on this for ages! I can't tell you how grateful I am!
Marc

Re: Lite-c programming doesn't work! [Re: Marc_Gagne] #231797
10/17/08 00:19
10/17/08 00:19
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
No problems mate. laugh
Just beware of SED saving as WDL by default, and that if you
have a *.WDL of the same name as you *.c it will auto-include.

They still bite me on a regular basis.... sick

Enjoy


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Lite-c programming doesn't work! [Re: Marc_Gagne] #231798
10/17/08 00:24
10/17/08 00:24
Joined: Sep 2008
Posts: 66
falagar8 Offline
Junior Member
falagar8  Offline
Junior Member

Joined: Sep 2008
Posts: 66
um..well
cough! cough!

I copy and pasted your program Marc in the Lite C
script ediotr and it wouldn't compiler due to some errors. After about 10 minutes or so going thru the whole program...I noticed there was no closing bracket for the function main.
So, I added a closing bracket and the program compiled and ran.

Here is the modified program:

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

var a = 7;
var b = 10;
var c = 0;

/////////////////////////////////////////////////////////////////////

PANEL* panDisplay =
{
digits(35, 10, "a = %0.f", *, 1, a);
digits(35, 19, "b = %0.f", *, 1, b);
digits(35, 28, "c = %0.f", *, 1, c);
flags = VISIBLE;
}

/////////////////////////////////////////////////////////////////////

function main()
{
video_mode = 7; // create a program window of 800x600 pixels
screen_color.blue = 150; // and make its background dark blue
while (1)
{
c = a + b;
wait (1);
}

}

its cool to style and indent your code. wink
If you want and like.

Re: Lite-c programming doesn't work! [Re: falagar8] #231803
10/17/08 00:46
10/17/08 00:46
Joined: Aug 2008
Posts: 408
mi usa
sadsack Offline
Senior Member
sadsack  Offline
Senior Member

Joined: Aug 2008
Posts: 408
mi usa
When I save as, I all ways type the .c after the name of the file.


I have A7 Commercial .............. Now I just need to learn how to use it

Page 2 of 2 1 2

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

Gamestudio download | 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