导航: 老古网老古论坛XMOS公共讨论区XMOS开源项目区单片机程序设计嵌入式系统广告区域
→仙人指路

* 52504: 仙人指路

   Sandrawan 
Sandrawan发表的帖子 

 仙人指路
我用VC6.0写了以下三个文件saa.h, faa.c,abc.c:
saa.h file:

#ifndef __SAA_H__
#define __SAA_H__
extern void TxtReadData(unsigned char * buf,unsigned char value);
#endif

faa.c file:
void TxtReadData(unsigned char *buf,unsigned char value)
{
   *buf = value;       
}


abc.c file:

#include  <stdio.h>  
#include "saa.h"

main()
{
   unsigned char buf[1];
   char a = 'c';
   TxtReadData(buf,a)
   return 0;
}

可我rebuild all 时报错,说Linking出了问题;请问该怎么样具体设置连接。
具体错误信息如下:
error LNK2001: unresolved external symbol "void __cdecl TxtReadData(unsigned char *,unsigned char)" (?TxtReadData@@YAXPAEE@Z)
Debug/saa5360.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

发表时间:2004年4月13日10:10:31

  
回复该帖

本主题共有 1 帖,分页:>>>>>该主题的所有内容[1]条

 *树形目录 只列出部分跟帖的标题以及简单的摘要信息 该主题的部分跟帖如下:

[上一篇帖子]:虚拟串口程序(可以付费)我现在在做一个虚拟串口程序。但一点头目都没有, 谁有这方面的经验,
[下一篇帖子]:ds12887 走的巨慢  十几秒才动一下(付c51代码)