Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Nymphodora), 972 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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