Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/28/26 14:01
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, TipmyPip, James168), 7,328 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 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: 600
Austria
Petra Offline
Support
Petra  Offline
Support

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

Chief Engineer
jcl  Offline

Chief Engineer

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