2
1

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.

プロジェクトルートからの絶対参照で自分のファイルをインクルードする

Last updated at Posted at 2013-09-02

別フォルダにあるヘッダーを持ってくるときにこう書いていませんか?

# include "../../any/more/foo.h"

これをインクルードフォルダに追加するだけでこう書けるようになります。

# include <any/more/foo.h>

設定方法は
プロパティを開き
VCディレクトリの設定
インクルードディレクトリ

$(SolutionPath)$(TargetName)

を追加するだけです。

ぜひお試しください。

これで入力が保管されるようになるのでとても便利です。
もしくは

./

でも大丈夫だと思います。

2
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?