Custom Indicator Compiler Error

To add comments, please log in or register
GM2_MTWork
8
GM2_MTWork  

I have written a simple custom indicator and the code compiles without error or warnings. However, there is a Microsoft header file called "sal.h" in which there are two errors.

1) '#pragma' - invalid preprocessor command sal.h 14 1

2) '#endif' - unexpected token sal.h 121 1


Given that I didn't write this ("sal.h") I am at a loss as to know a) why this has occurred and b) how to eliminate this error.  Does MT4 use its own compiler or does it use a compiler than one has installed on the machine on which one is doing the code development. How is this set up?

thanks!!

GM2

Fernando Carreiro
4420
Fernando Carreiro  
GM2_MTWork: I have written a simple custom indicator and the code compiles without error or warnings. However, there is a Microsoft header file called "sal.h" in which there are two errors.
  1. '#pragma' - invalid preprocessor command sal.h 14 1
  2. '#endif' - unexpected tokensal.h1211

Given that I didn't write this ("sal.h") I am at a loss as to know a) why this has occurred and b) how to eliminate this error.  Does MT4 use its own compiler or does it use a compiler than one has installed on the machine on which one is doing the code development. How is this set up?

Show your code! We cannot guess what is written there unless you show the code.

MT4 Uses its own editor/compiler called MetaEditor! It does not use any external compiler!

whroeder1
17942
whroeder1  
GM2_MTWork: However, there is a Microsoft header file called "sal.h" in which there are two errors.
So what? That is likely a C header file, not a MT5 header file. You can not include that and expect it to compile.
To add comments, please log in or register