2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SublimeText2でC++を実行する時のビルド設定(Mac)

2
Posted at

SublimeText2でC++を実行する時のビルド設定

動作確認済みのビルド設定を下記にメモしておきます。

環境

  • Mac (OSX Yosemite)
  • SublimeText2
C++_make.sublime-build
{
	"cmd": ["make"],
	"working_dir": "${file_path}",
	"selector": "source.cpp",
	"variants":
	[
		{
		"name": "Run",
		"cmd": ["make", "run"]
		}
	]
}

Makefileの例

Makefile
main: test.o test2.o
	g++ -Wall test.o test2.o -o main

test.o: test.c
	g++ -c test.c

test2.o: test2.c
	g++ -c test2.c

run: ./main
	./main
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?