一個pkg-config的問題 - Linux

By Joe
at 2012-03-14T22:23
at 2012-03-14T22:23
Table of Contents
大家好
小弟想要用opencv編譯test1.cpp
g++ pkg-config opencv --libs --cflags test1.cpp
會出現
cc1plus: error: unrecognized command line option "-flibs"
cc1plus: error: unrecognized command line option "-fcflags"
使我無法正常編譯
但是改成
g++ ` pkg-config opencv --libs --cflags ` test1.cpp
在這兩個地方加上`後
就可以正常編譯
請問小弟該如何解釋這個問題跟解法?
謝謝各位版友的指教
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
--
小弟想要用opencv編譯test1.cpp
g++ pkg-config opencv --libs --cflags test1.cpp
會出現
cc1plus: error: unrecognized command line option "-flibs"
cc1plus: error: unrecognized command line option "-fcflags"
使我無法正常編譯
但是改成
g++ ` pkg-config opencv --libs --cflags ` test1.cpp
在這兩個地方加上`後
就可以正常編譯
請問小弟該如何解釋這個問題跟解法?
謝謝各位版友的指教
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
--
Tags:
Linux
All Comments

By Joe
at 2012-03-17T17:41
at 2012-03-17T17:41
Related Posts
32-bit的系統可以利用yum或apt升成64嗎?

By Anonymous
at 2012-03-14T01:27
at 2012-03-14T01:27
SSH telnet連線都很慢

By Lily
at 2012-03-14T00:48
at 2012-03-14T00:48
Re: 想安裝Fedora Linux 16有支援下列電腦硬體

By Ursula
at 2012-03-13T22:00
at 2012-03-13T22:00
怎麼用ubuntu救windows的資料

By Sierra Rose
at 2012-03-13T18:29
at 2012-03-13T18:29
sendmail收不到信

By Poppy
at 2012-03-13T16:23
at 2012-03-13T16:23