Cには詳しいのですが、C++があまりよくわかっておらず、質問させてください。
今回、手に入れたC++のあるプログラムをmakeしています(x86_64 Linux)。
以下のようなエラーが出てコンパイルできないのですが、何が悪いのか全く理解できず困っています。
他の環境ではコンパイルできているらしいので、わたしの環境の何が悪いのか、考えられることがありましたら、何でも書き込んでいただけると嬉しいです。
よろしくお願いします。
g++ -c -I../MathUtils -I../CommonUtils -DHAVE_ZLIB -DHAVE_BZLIB -fomit-frame-pointer -O2 -DFTYPE=float -Wall -Wsign-compare -Wpointer-arith -pedantic -DHAVE_PGPLOT -I. -DHAVE_FFTW -o analyse_image.o analyse_image.cpp
In file included from analyse_image.cpp:21:
Tools.h:16:15: warning: anonymous variadic macros were introduced in C99
analyse_image.cpp: In function ‘int main(int, char**)’:
analyse_image.cpp:114: error: ‘strcmp’ was not declared in this scope
analyse_image.cpp:205: error: ‘exit’ was not declared in this scope
analyse_image.cpp:209: error: ‘strstr’ was not declared in this scope
analyse_image.cpp:216: error: ‘exit’ was not declared in this scope
analyse_image.cpp:457: error: ‘strlen’ was not declared in this scope
make: *** [analyse_image.o] Error 1
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
関連するカテゴリからQ&Aを探す
おすすめ情報
- ・漫画をレンタルでお得に読める!
- ・人生のプチ美学を教えてください!!
- ・10秒目をつむったら…
- ・あなたの習慣について教えてください!!
- ・牛、豚、鶏、どれか一つ食べられなくなるとしたら?
- ・【大喜利】【投稿~9/18】 おとぎ話『桃太郎』の知られざるエピソード
- ・街中で見かけて「グッときた人」の思い出
- ・「一気に最後まで読んだ」本、教えて下さい!
- ・幼稚園時代「何組」でしたか?
- ・激凹みから立ち直る方法
- ・1つだけ過去を変えられるとしたら?
- ・【あるあるbot連動企画】あるあるbotに投稿したけど採用されなかったあるある募集
- ・【あるあるbot連動企画】フォロワー20万人のアカウントであなたのあるあるを披露してみませんか?
- ・映画のエンドロール観る派?観ない派?
- ・海外旅行から帰ってきたら、まず何を食べる?
- ・誕生日にもらった意外なもの
- ・天使と悪魔選手権
- ・ちょっと先の未来クイズ第2問
- ・【大喜利】【投稿~9/7】 ロボットの住む世界で流行ってる罰ゲームとは?
- ・推しミネラルウォーターはありますか?
- ・都道府県穴埋めゲーム
- ・この人頭いいなと思ったエピソード
- ・準・究極の選択
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
” OS ビルド ” の意味が分か...
-
1 つ以上の複数回定義されてい...
-
「fatal error C1189」を回避す...
-
VBAを何回も作り直して、容量が...
-
<math.h>があるのにsqrtが・...
-
ILSpyで、デコンパイルできない。
-
[c++] <pthread.h>がinclude で...
-
外部シンボル "_main"は未解決です
-
C言語でヘッダファイルにグロー...
-
Makefile作成時の拡張子.oとは?
-
戻り値について
-
マクロ コンパイルがグレーバック
-
「DeclareステートメントにPtrS...
-
C++コンパイル時に『 C1083: in...
-
【VC++6.0(MFC)】警告「LINK : ...
-
関数形式マクロ
-
drand48()が使えない
-
ビルドとリビルドの違いを教え...
-
不要な #include
-
sys/types.hの必要性について
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
VBAを何回も作り直して、容量が...
-
エクセルVBAではRound...
-
「fatal error C1189」を回避す...
-
Makefile作成時の拡張子.oとは?
-
ILSpyで、デコンパイルできない。
-
1 つ以上の複数回定義されてい...
-
外部シンボル "_main"は未解決です
-
セミコロンについて
-
C言語でヘッダファイルにグロー...
-
” OS ビルド ” の意味が分か...
-
マクロ コンパイルがグレーバック
-
【VC++6.0(MFC)】警告「LINK : ...
-
クリティカルエラー Expressio...
-
PRO*C コンパイルエラー
-
[c++] <pthread.h>がinclude で...
-
<math.h>があるのにsqrtが・...
-
ビルドとリビルドの違いを教え...
-
CImageクラスの使用について
-
戻り値について
-
コンパイルエラー:ユーザ定義...
おすすめ情報