Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,089 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
function run() error in compilator #480554
06/14/20 18:40
06/14/20 18:40
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Hi,

I have this code ( in the older version work without problem):
Code

#include <zorroZmq.h>

function run()
{
    if (is(INITRUN)){

        int v1;
        int v2;
        int v3;
        zmq_version(&v1,&v2,&v3);
        printf("\nversion: %d.%d.%d",v1,v2,v3);
    }

}
          


I get this error
Quote

testRun compiling..
Error in 'line 4:
'function' undeclared identifier
< function run() >.


after change to:
Code

#include <zorroZmq.h>

void main()
{

    int v1;
    int v2;
    int v3;
    zmq_version(&v1,&v2,&v3);
    printf("\nversion: %d.%d.%d",v1,v2,v3);

}


is all OK:
Quote


testRun compiling....... ok

version: 4.2.0




Last edited by Grat; 06/15/20 04:38.
Re: function run() error in compilator [Re: Grat] #480558
06/15/20 09:00
06/15/20 09:00
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I don't think that it is related to the Zorro version, but in your .c or .h file you have probably forgotten this line:

#include <default.c>

Re: function run() error in compilator [Re: Grat] #480561
06/15/20 09:56
06/15/20 09:56
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Thanks,

this work. I thinking, is some this like.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1