Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (sleakz, AndrewAMD), 684 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Using standard C libraries with Zorro? #471054
02/17/18 17:20
02/17/18 17:20
Joined: Sep 2017
Posts: 235
H
Hredot Offline OP
Member
Hredot  Offline OP
Member
H

Joined: Sep 2017
Posts: 235
How should I set up Zorro for using standard C libraries?
Just trying
Code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>


in the beginning of a file produces errors about missing dependencies.

Re: Using standard C libraries with Zorro? [Re: Hredot] #471060
02/17/18 20:39
02/17/18 20:39
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
I believe Lite-C isn't 100% compatible with C, so it might not work to try to include standard C libraries.

Instead, you can make your own DLLs with exported cdecl functions and import those functions in Zorro.

Nonetheless, some of the standard C library functions are available/replicated/"imitated". Check the Zorro manual for details.

Also, you can write Strategy DLL's and easily import any standard library you want with ease. There are drawbacks, though... it can be more complicated and time consuming, especially if you don't know what you're doing:
http://zorro-project.com/manual/en/dlls.htm

Re: Using standard C libraries with Zorro? [Re: AndrewAMD] #471062
02/18/18 01:51
02/18/18 01:51
Joined: Sep 2017
Posts: 235
H
Hredot Offline OP
Member
Hredot  Offline OP
Member
H

Joined: Sep 2017
Posts: 235
Thanks for the suggestion! I'll give it a try.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1