どなたかご教授願いませんでしょうか。
利用しているOSはwin7、
IDEとして、BCCdeveloper ver1.2.21を利用しています。
出てきたエラーは以下のメッセージです。
> C:\borland\bcc55\Bin\make.exe -fDebug\test.mak Debug\test.res
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
brc32 -r -foDebug\test.res C:\Users\hiroshi\Documents\program\test\test.rc
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Error test.rc 7 10: Cannot open file: stdio.h
** error 20018 ** deleting Debug\test.res
Compile End !! (Elapsed time 0:01.779)
確認をしてみたことは
1:環境変数のチェック
確認をしたときは、先頭にC:\borland\bcc55\Bin;があったので、これを末尾に移しました。
2:C:\borland\bcc55\Includeにstdio.hが存在すること
3:readme.txtに書いてある内容の確認
readme.txtに従い、
C:\borland\bcc55\Bin
にあるbcc32.cfgの中身が
-I"c:\borland\bcc55\include"
-L"c:\borland\bcc55\lib"
(念のために\bcc55のあとに\binもつけて試しても見ました。)
ilink32.cfgの中身が
-L"c:\borland\bcc55\lib"
であること。(念のために\bcc55のあとに\binもつけて試しても見ました。)
test.makのファイルを開くと以下のようになっていたのですが、回答の意味は「RC=brc32の後ろに記述を追加する」という意味でしょうか?
CC=bcc32 RC=brc32 ... $(RES1): $(RC1) $(RC) $(RESINCS) -r -fo$(RES1) $(RC1)
とのことなので、RESINCS 変数にインクルードファイルを検索するパスを書けば良いでしょう。
RC1=C:\Users\hiroshi\Documents\program\test\test.rc RES1=Debug\test.res # ↓これ。 RESINCS=C:\borland\bcc55\include ...
こちらのbrc32だと
C:\temp>brc32 -h
Syntax: brc32 [options ...] filename
options marked with a '*' are on by default
(中略)
-ipath set include path
(以下略)
となっているので
Makefile(test.mak)中のリソースコンパイラ(brc32)に対するオプションに
-ic:/borland/bcc55/include
を追加すれば良いです。