function run() error in compilator

Posted By: Grat

function run() error in compilator - 06/14/20 18:40

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



Posted By: jcl

Re: function run() error in compilator - 06/15/20 09:00

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>
Posted By: Grat

Re: function run() error in compilator - 06/15/20 09:56

Thanks,

this work. I thinking, is some this like.
© 2024 lite-C Forums