エラーになるのですが

フォーラム(掲示板)ルール
フォーラム(掲示板)ルールはこちら  ※コードを貼り付ける場合は [code][/code] で囲って下さい。詳しくはこちら
ひよこ

エラーになるのですが

#1

投稿記事 by ひよこ » 16年前

BCC Developerでシューティングゲームの館の33章までのプログラムを実行しようとしたら下のようにでてくるのですがどうすればいいでしょうか?
「Error:Unresolved external '_main' referenced from  C:\BORLAND\BCC55\LIB\c0x32.obj」

ひよこ

Re:エラーになるのですが

#2

投稿記事 by ひよこ » 16年前

すいません。タイトル忘れました。
タイトルは「エラーになるのですが」です。
ごめんなさい。

lbfuvab

Re:無題

#3

投稿記事 by lbfuvab » 16年前

プロジェクトの設定をコンソールアプリケーションからwindowsアプリケーションにしてください。

ひよこ

Re:無題

#4

投稿記事 by ひよこ » 16年前

Windowsアプリケーションにしたら下のように出てきたんですけど、どうすればいいのでしょうか?
Error:Unresolved external '_extern void img_sound_load'referenced from C:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ
Error:Unresolved external '_initialization'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ
Error:Unresolved external '_ SetColor'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ
Error:Unresolved external '_PlayerShotCalc'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_PlayerControl'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ Background'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ PlayerShotDisp'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ EnemyCalcDisp'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ EnemyControl'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ EnemyShotControl'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ EnemyShotCalcDisp'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_CollisionDetection'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ Background2'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_FpsTimeFanction'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

ひよこ

Re:無題

#5

投稿記事 by ひよこ » 16年前

なんかやってるうちに下のように出てきたのですがどうすればいいのでしょうか
Error: Unresolved external 'LoadGraph(const char *)' referenced from C:\WINDOWS\デスクトップ\SHOOT\DEBUG\IMG_SOUND_LOAD.OBJ
Error: Unresolved external 'LoadDivGraph(const char *, int, int, int, int, int, int *)' referenced from C:\WINDOWS\デスクトップ\SHOOT\DEBUG\IMG_SOUND_LOAD.OBJ

SCI

Re:無題

#6

投稿記事 by SCI » 16年前

DxLib.hはインクルードしていますよね?
ヘッダだけではなく、ライブラリもプロジェクトに入れてみてください。

ひよこ

Re:無題

#7

投稿記事 by ひよこ » 16年前

ShootのファイルVCPROJECTとslnを除いてすべてやりなおしたら下のように出ました。
どうすればいいでしょうか?
Error: 'C:\WINDOWS\デスクトップ\SHOOT\DXUSECLIB.LIB' contains invalid OMF record, type 0x21 (possibly COFF)

御津凪

Re:無題

#8

投稿記事 by 御津凪 » 16年前

> contains invalid OMF record, type 0x21 (possibly COFF)
ライブラリはBCC用のものですか?
VC++用だとライブラリのタイプが違うため、上記のようなエラーになります。

ひよこ

Re:無題

#9

投稿記事 by ひよこ » 16年前

上のようなエラーは出なくなったんですが下のように出てきたんですけど、どうすればいいのでしょうか?
Error:Unresolved external '_extern void img_sound_load'referenced from C:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ
Error:Unresolved external '_initialization'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ
Error:Unresolved external '_ SetColor'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ
Error:Unresolved external '_PlayerShotCalc'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_PlayerControl'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ Background'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ PlayerShotDisp'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ EnemyCalcDisp'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ EnemyControl'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ EnemyShotControl'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ EnemyShotCalcDisp'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_CollisionDetection'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_ Background2'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

Error:Unresolved external '_FpsTimeFanction'referenced fromC:\Windows\デスクトップ¥SHOOT2¥DEBUG¥MAIN.OBJ

toyo

Re:無題

#10

投稿記事 by toyo » 16年前

WinMain( )関数内にある
extern void img_sound_load();
extern void initialization();
extern void SetColor();
extern void Background();
extern void PlayerShotCalc();
extern void PlayerShotDisp();
extern void PlayerControl();
extern void EnemyControl();
extern void EnemyCalcDisp();
extern void EnemyShotControl();
extern void EnemyShotCalcDisp();
extern void CollisionDetection();
extern void Background2();
extern void FpsTimeFanction();
をWinMain( )関数の外(上)に移動してください

ひよこ

Re:無題

#11

投稿記事 by ひよこ » 16年前

FPS Timerしか出ないんですけど、どうすればいいでしょうか?

toyo

Re:無題

#12

投稿記事 by toyo » 16年前

Sh フォルダを丸ごと Debug フォルダにコピーしてみてください

ひよこ

Re:無題

#13

投稿記事 by ひよこ » 16年前

ありがとうございます。できました。
答えてくださった方、本当にありがとうございました。

閉鎖

“C言語何でも質問掲示板” へ戻る