0
0

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.

Fish-shellでコンパイル時の動作が違う

Last updated at Posted at 2017-09-05

背景

OpenCVのサンプルプログラムをビルドしようとしたら何故か出来なかった

#環境
・Archlinux(4.12.8-2-ARCH)
・GCC(7.1.1 20170630)
・OpenCV(3.3.0-2) - /usr/include/と/usr/lib/下にインストール
・fish(2.6.0)
#実行したコマンド

以下の画像の通り

Screenshot from 2017-09-05 21-55-51.png

左がfishで右がbash、zshでも試してみたが通った
ちなみにfishのサブコマンドが``でなく()なのはfishの仕様です

#考察

ldが受け取る環境変数か何かが違うのかな?

#暫定的な解決方法

echoした結果をそのまま渡したらいけた
VSCode使ってるしtasks.jsonに書いたしとりあえず

#まとめ
分かり次第書きます、心当たりがあればコメントください

0
0
1

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?