Help us understand the problem. What is going on with this article?

MQL4をVSCode(とMT4)でコンパイルする!

More than 1 year has passed since last update.

やっとこさコンパイル出来るようになったので、メモ代わりに置いときます。
うまく行かなかったら、ごめんなさい。
MacOS(wine)とWindows両対応です。

MacOSならば「Shift+Command+B」でビルド出来ました。

tasks.json
{
  "version": "2.0.0",
  "tasks": 
  [
    {
      "label": "MQL4-Compile",
      "group": 
      {
        "kind"      : "build",
        "isDefault" : true
      },
      "presentation": 
      {
        "echo"  : true,
        "reveal": "always",
        "focus" : true,
        "panel" : "shared"
      },
      "promptOnClose" : true,
      "type"          : "process",
      "osx"           : 
      { 
        "command" : "wine",
        "args"    : 
        [ 
          "/Users/hogehoge/.wine/drive_c/Program Files/OANDA - MetaTrader/metaeditor.exe",
          "/compile:${fileBasename}",
          "/log:${fileBasenameNoExtension}.log",
        ]
      },
      "windows"   : 
      { 
        "command" : "C:\\Program Files (x86)\\OANDA - MetaTrader\\metaeditor.exe",
        "args"    : 
        [ 
          "/compile:${fileBasename}",
          "/log:${fileBasenameNoExtension}.log",
        ]
      },
    }
  ]
}
unisoft
Macが大好きなおじさんSE。普段は組み込みプログラマ。昔はASIC屋でした。サイクリングとトレイルランニングが趣味です。ハイパーメディアプログラマを目指してます。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした