掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
VC6⇒VC2005移植でリンクエラー(LNK2019) (ID:63942)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
MFCで作成したEXEプロジェクトをVC6からVC2005へ移植しているのですが、以下のリンクエラーが解決できない状況です。 開発環境:Windows2000(SP4)、VisualStudio2005 Pro -------------- ここから -------------- リンクしています... CreateBarCodeObjectDlg.obj : error LNK2019: 未解決の外部シンボル "__declspec(dllimport) public: class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __thiscall CBarCodeObjectRec::GetDefaultValue(void)" (__imp_?GetDefaultValue@CBarCodeObjectRec@@QAE?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@XZ) が関数 "private: void __thiscall CCreateBarCodeObjectDlg::ReflectValue(void)" (?ReflectValue@CCreateBarCodeObjectDlg@@AAEXXZ) で参照されました。 ObjectPropBarCodePg.obj : error LNK2001: 外部シンボル ""__declspec(dllimport) public: class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __thiscall CBarCodeObjectRec::GetDefaultValue(void)" (__imp_?GetDefaultValue@CBarCodeObjectRec@@QAE?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@XZ)" は未解決です。 Functions.obj : error LNK2019: 未解決の外部シンボル "__declspec(dllimport) public: static struct CRuntimeClass * __stdcall CStaticFieldObjectRec::GetThisClass(void)" (__imp_?GetThisClass@CStaticFieldObjectRec@@SGPAUCRuntimeClass@@XZ) が関数 "class CSize __cdecl GetTextFitSize(class CCommonFieldObjectRec *,char const *,int,char const *,int,int,char)" (?GetTextFitSize@@YA?AVCSize@@PAVCCommonFieldObjectRec@@PBDH1HHD@Z) で参照されました。 -------------- ここまで -------------- リンク先のDLLはVC6で作成したものです。移植前(VC6)ではリンクできます。 CBarCodeObjectRec::GetDefaultValue(void)の宣言、定義共に確認したのですが、記述漏れはありませんでした。 CStaticFieldObjectRec::GetThisClass(void)に関しては宣言、定義共にありませんでした。 プロジェクトのプロパティの「リンカ」の設定変更が必要なのでしょうか? アドバイス宜しくお願いいたします。
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.