Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
2 registered members (AbrahamR, 1 invisible), 858 guests, and 6 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
How to compile code from notepad++ with gcc #463776
12/26/16 13:31
12/26/16 13:31
Joined: Nov 2016
Posts: 55
Taipei
ytc Offline OP
Junior Member
ytc  Offline OP
Junior Member

Joined: Nov 2016
Posts: 55
Taipei
Hi,

I failed to compile the code directly from notepad++ with gcc. I included default.c in the code but it didn't work.

The first error I encountered is as below
Code:
Process started >>>
In file included from d:/program/mingw/include/default.c:12:0,
                 from genIndicator.c:1:
d:/program/mingw/include/trading.h:38:2: error: unknown type name 'DATE'
  DATE time; // time stamp, GMT
  ^



How to fix it?

Re: How to compile code from notepad++ with gcc [Re: ytc] #463777
12/26/16 15:59
12/26/16 15:59
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
typedef double DATE?

Re: How to compile code from notepad++ with gcc [Re: Petra] #463779
12/26/16 20:49
12/26/16 20:49
Joined: Nov 2016
Posts: 55
Taipei
ytc Offline OP
Junior Member
ytc  Offline OP
Junior Member

Joined: Nov 2016
Posts: 55
Taipei
Yeah, it was used in trading.h and defined in litec.h, which was included in default.c. So what's the problem?

Re: How to compile code from notepad++ with gcc [Re: ytc] #463783
12/27/16 15:08
12/27/16 15:08
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
litec.h is not included in a Win32 compilation, but that's not the problem. You can not compile a strategy with gcc because gcc has no trading functions. What you could do is compile a DLL in gcc and then call the DLL functions from a lite-C script.

Re: How to compile code from notepad++ with gcc [Re: jcl] #463789
12/27/16 19:51
12/27/16 19:51
Joined: Nov 2016
Posts: 55
Taipei
ytc Offline OP
Junior Member
ytc  Offline OP
Junior Member

Joined: Nov 2016
Posts: 55
Taipei
Thanks for the reply, jcl.
I'll try to figure it out.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1