Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 11/30/26 08:19
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Quad, Martin_HH), 6,771 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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: 604
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 604
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,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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