链接问题

applelppa 2005-02-28 08:59:15
error LNK2019 无法解析外部符号 _declspec(dllimport)public:_thiscall DbxFileHeader::DbxFileHeader(class std::basic_istream<char,struct std::char_traits<char>>&)"后面还有一堆东西,然后说在该函数某某中使用

头文件里定义了以下这些东西:
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
#define AS_WIN32
#else
#error "This code is made for windows."
#endif
#define AS_OEDBX_DLL
#if defined(AS_WIN32) && defined(AS_OEDBX_DLL)
#if defined(AS_OE_IMPLEMENTATION)
#define AS_EXPORT __declspec(dllexport)
#else
#define AS_EXPORT __declspec(dllimport)
#endif
#else
#define AS_EXPORT
#endif

class AS_EXPORT DbxFileHeader
{ public :
DbxFileHeader(InStream ins);

int4 GetValue(int4 index) const{return Buffer[index]; }

bool isFolders() const { return (Buffer && (Buffer[1]==0x6f74fdc6)); }

void ShowResults(OutStream outs) const;

private :
// this function is called from the constructor
void readFileHeader(InStream ins);

// stores the data
int4 Buffer[FileHeaderEntries];
};

然后在函数中定义了DbxFileHeader类的实例:
DbxFileHeader fileHeader(ins);
...全文
88 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
oyljerry 2005-03-01
  • 打赏
  • 举报
回复
缺少对应的库文件
瓯越浪子 2005-03-01
  • 打赏
  • 举报
回复
工程未引用用到的库文件
applelppa 2005-02-28
  • 打赏
  • 举报
回复
请问该如何解决这个链接问题?

7,540

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧