Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,619 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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