Hey, thanks for your reply.

Of course earlier I fixed that include line and commented out the text, it just remained somehow here.

There is a more interesting thing.
If I commented out the entire include line of var.h the dll is loaded but the result of the ldexpc(10,2) is 40. Maybe I checked that wrong way.
Here is the code:
Code
    var z;
    z = ldexpc(10,2); // calculates x = y * n2
    printf("z: %7.0f",(double)z);


Update: i checked and the result is OK.

But, if the include is not commented out I got still this message: "empty function called in main".

One more thing. The began to work when I created a new project and the type was DLL and not DLL with export.

So, my problem is this: how should use the var.h? or should not?
What is wrong with var.h in my project?

Last edited by Aku_Aku; 12/15/23 12:14.