掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
fatal error LNK1120の対応方法について (ID:66098)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
StdAfx.cpp追加時とDIDSDlg.cppへの追加時では若干エラー内容が違うので エラー内容を記載します。 ●StdAfx.cpp追加時 プロジェクト 'DIDS - Win32 Debug' 用の中間ファイルおよび出力ファイルを削除しています。 --------------------構成: DIDS - Win32 Debug-------------------- リソースをコンパイル中... コンパイル中... StdAfx.cpp コンパイル中... ClientSocket.cpp DIDS.cpp DIDSDlg.cpp D:\〜\DIDSDlg.cpp(1245) : error C2065: 'HMONITOR' : 定義されていない識別子です。 D:\〜\DIDSDlg.cpp(1245) : error C2146: 構文エラー : ';' が、識別子 'MonitorHandle' の前に必要です。 D:\〜\DIDSDlg.cpp(1245) : error C2065: 'MonitorHandle' : 定義されていない識別子です。 D:\〜\DIDSDlg.cpp(1246) : error C2065: 'MONITORINFO' : 定義されていない識別子です。 D:\〜\DIDSDlg.cpp(1246) : error C2146: 構文エラー : ';' が、識別子 'MonitorInfo' の前に必要です。 D:\〜\DIDSDlg.cpp(1246) : error C2065: 'MonitorInfo' : 定義されていない識別子です。 D:\〜\DIDSDlg.cpp(1301) : error C2039: 'MonitorFromPoint' : '`global namespace'' のメンバではありません。 D:\〜\DIDSDlg.cpp(1301) : error C2065: 'MonitorFromPoint' : 定義されていない識別子です。 D:\〜\DIDSDlg.cpp(1301) : error C2065: 'MONITOR_DEFAULTTOPRIMARY' : 定義されていない識別子です。 D:\〜\DIDSDlg.cpp(1302) : error C2228: '.cbSize' : 左側がクラス、構造体、共用体ではありません。 D:\〜\DIDSDlg.cpp(1303) : error C2039: 'GetMonitorInfo' : '`global namespace'' のメンバではありません。 D:\〜\DIDSDlg.cpp(1303) : error C2065: 'GetMonitorInfo' : 定義されていない識別子です。 D:\〜\DIDSDlg.cpp(1309) : error C2228: '.rcWork' : 左側がクラス、構造体、共用体ではありません。 D:\〜\DIDSDlg.cpp(1309) : error C2228: '.left' : 左側がクラス、構造体、共用体ではありません。 D:\〜\DIDSDlg.cpp(1309) : error C2228: '.rcWork' : 左側がクラス、構造体、共用体ではありません。 D:\〜\DIDSDlg.cpp(1309) : error C2228: '.top' : 左側がクラス、構造体、共用体ではありません。 D:\〜\DIDSDlg.cpp(1309) : error C2228: '.rcWork' : 左側がクラス、構造体、共用体ではありません。 D:\〜\DIDSDlg.cpp(1309) : error C2228: '.right' : 左側がクラス、構造体、共用体ではありません。 D:\〜\DIDSDlg.cpp(1309) : error C2228: '.rcWork' : 左側がクラス、構造体、共用体ではありません。 D:\〜\DIDSDlg.cpp(1309) : error C2228: '.left' : 左側がクラス、構造体、共用体ではありません。 D:\〜\DIDSDlg.cpp(1309) : error C2228: '.rcWork' : 左側がクラス、構造体、共用体ではありません。 D:\〜\DIDSDlg.cpp(1309) : error C2228: '.bottom' : 左側がクラス、構造体、共用体ではありません。 Setting.cpp コードを生成中... cl.exe の実行エラー DIDS.exe - エラー 22、警告 0 ●DIDSDlg.cppへの追加時 プロジェクト 'DIDS - Win32 Debug' 用の中間ファイルおよび出力ファイルを削除しています。 --------------------構成: DIDS - Win32 Debug-------------------- リソースをコンパイル中... コンパイル中... StdAfx.cpp コンパイル中... ClientSocket.cpp DIDS.cpp DIDSDlg.cpp c:\program files\microsoft visual studio\vc98\include\multimon.h(73) : error C2065: 'HMONITOR' : 定義されていない識別子です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(73) : error C2275: 'HDC' : typedef 識別子に、クラス メンバ アクセス演算子 (->) を使用しました。 c:\program files\microsoft visual studio\vc98\include\windef.h(239) : 'HDC' の宣言を確認してください。 c:\program files\microsoft visual studio\vc98\include\multimon.h(73) : error C2275: 'LPRECT' : typedef 識別子に、クラス メンバ アクセス演算子 (->) を使用しました。 c:\program files\microsoft visual studio\vc98\include\windef.h(292) : 'LPRECT' の宣言を確認してください。 c:\program files\microsoft visual studio\vc98\include\multimon.h(73) : error C2275: 'LPARAM' : typedef 識別子に、クラス メンバ アクセス演算子 (->) を使用しました。 c:\program files\microsoft visual studio\vc98\include\windef.h(171) : 'LPARAM' の宣言を確認してください。 c:\program files\microsoft visual studio\vc98\include\multimon.h(73) : error C2165: 'left-side modifier' : データへのポインタは変更できません。 c:\program files\microsoft visual studio\vc98\include\multimon.h(73) : error C2071: 'MONITORENUMPROC' : 記憶クラスは不正です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(99) : error C2059: 構文エラー : '__stdcall' c:\program files\microsoft visual studio\vc98\include\multimon.h(99) : error C2091: 関数は関数を返せません。 c:\program files\microsoft visual studio\vc98\include\multimon.h(99) : error C2501: 'HMONITOR' : 識別名を宣言するのに、型が指定されていません。 c:\program files\microsoft visual studio\vc98\include\multimon.h(99) : error C2373: 'HMONITOR' : 再定義されています。異なる型修飾子です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(99) : error C2072: 'HMONITOR' : 関数を初期化しようとしました。 c:\program files\microsoft visual studio\vc98\include\multimon.h(100) : error C2059: 構文エラー : '__stdcall' c:\program files\microsoft visual studio\vc98\include\multimon.h(100) : error C2091: 関数は関数を返せません。 c:\program files\microsoft visual studio\vc98\include\multimon.h(100) : error C2501: 'HMONITOR' : 識別名を宣言するのに、型が指定されていません。 c:\program files\microsoft visual studio\vc98\include\multimon.h(100) : error C2373: 'HMONITOR' : 再定義されています。異なる型修飾子です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(100) : error C2072: 'HMONITOR' : 関数を初期化しようとしました。 c:\program files\microsoft visual studio\vc98\include\multimon.h(101) : error C2059: 構文エラー : '__stdcall' c:\program files\microsoft visual studio\vc98\include\multimon.h(101) : error C2091: 関数は関数を返せません。 c:\program files\microsoft visual studio\vc98\include\multimon.h(101) : error C2501: 'HMONITOR' : 識別名を宣言するのに、型が指定されていません。 c:\program files\microsoft visual studio\vc98\include\multimon.h(101) : error C2373: 'HMONITOR' : 再定義されています。異なる型修飾子です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(101) : error C2072: 'HMONITOR' : 関数を初期化しようとしました。 c:\program files\microsoft visual studio\vc98\include\multimon.h(102) : error C2629: 'int (' は不正です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(114) : error C2065: 'g_pfnGetMonitorInfo' : 定義されていない識別子です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(119) : error C2065: 'g_pfnMonitorFromWindow' : 定義されていない識別子です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(120) : error C2065: 'g_pfnMonitorFromRect' : 定義されていない識別子です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(121) : error C2065: 'g_pfnMonitorFromPoint' : 定義されていない識別子です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(184) : error C2143: 構文エラー : ';' が '__stdcall' の前に必要です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(184) : error C2501: 'HMONITOR' : 識別名を宣言するのに、型が指定されていません。 c:\program files\microsoft visual studio\vc98\include\multimon.h(196) : error C2143: 構文エラー : ')' が 'constant' の前に必要です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(196) : error C2059: 構文エラー : ')' c:\program files\microsoft visual studio\vc98\include\multimon.h(202) : error C2143: 構文エラー : ';' が '__stdcall' の前に必要です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(202) : error C2501: 'HMONITOR' : 識別名を宣言するのに、型が指定されていません。 c:\program files\microsoft visual studio\vc98\include\multimon.h(202) : error C2086: 'HMONITOR' : 再定義されました。 c:\program files\microsoft visual studio\vc98\include\multimon.h(202) : 'HMONITOR' の宣言を確認してください。 c:\program files\microsoft visual studio\vc98\include\multimon.h(214) : error C2143: 構文エラー : ')' が 'constant' の前に必要です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(214) : error C2059: 構文エラー : ')' c:\program files\microsoft visual studio\vc98\include\multimon.h(220) : error C2143: 構文エラー : ';' が '__stdcall' の前に必要です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(220) : error C2501: 'HMONITOR' : 識別名を宣言するのに、型が指定されていません。 c:\program files\microsoft visual studio\vc98\include\multimon.h(220) : error C2086: 'HMONITOR' : 再定義されました。 c:\program files\microsoft visual studio\vc98\include\multimon.h(220) : 'HMONITOR' の宣言を確認してください。 c:\program files\microsoft visual studio\vc98\include\multimon.h(229) : error C2143: 構文エラー : ')' が 'constant' の前に必要です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(229) : error C2059: 構文エラー : ')' c:\program files\microsoft visual studio\vc98\include\multimon.h(242) : error C2146: 構文エラー : ')' が、識別子 'hMonitor' の前に必要です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(242) : warning C4229: 旧形式が使用されています : データの修飾子は無視されます。 c:\program files\microsoft visual studio\vc98\include\multimon.h(242) : error C2059: 構文エラー : ')' c:\program files\microsoft visual studio\vc98\include\multimon.h(243) : error C2143: 構文エラー : ';' が '{' の前に必要です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(243) : error C2447: 'PCH creation point' : 関数ヘッダがありません (旧形式の仮引数リスト?) c:\program files\microsoft visual studio\vc98\include\multimon.h(328) : error C2143: 構文エラー : ')' が 'constant' の前に必要です。 c:\program files\microsoft visual studio\vc98\include\multimon.h(331) : error C2059: 構文エラー : ')' D:\〜\DIDSDlg.cpp(1245) : error C2146: 構文エラー : ';' が、識別子 'MonitorHandle' の前に必要です。 D:\〜\DIDSDlg.cpp(1245) : error C2065: 'MonitorHandle' : 定義されていない識別子です。 Setting.cpp コードを生成中... cl.exe の実行エラー DIDS.exe - エラー 48、警告 1
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.