오류가 계속 뜨네요...ㅠㅠ 뭘 틀린건지..ㅠㅠㅠ
곰돌이
오류가 계속 뜨네요...ㅠㅠ 뭘 틀린건지..ㅠㅠㅠ소스파일에 eblib_vc.lib파일과 헤더파일에 eblib.h를 add했습니다...
어디서 오류가 난건지 가르쳐 주세요...ㅠㅠ
질문 내용 :
#include stdio.h
#include conio.h
#include dos.h
#include eblib.h
#define base_addr0x300
#define portabase_addr | 0x04
#define portbbase_addr | 0x05
#define cwr0base_addr | 0x07
#define cwr1base_addr | 0x0b
#define delay_time100
void init_eboard(void)
{
outp(cwr0, 0x88);
outp(cwr1, 0x80);
outp(cwr0, 0xff);
}
void mian(void)
{
int count, quot, rem;
unsigned out;
if(initdriver(eb_device_pci))
{
printf(device driver loading fail!\r\n);
return;
}
init_eboard();
clrscr();
do
{
if(count=100) count=0;
else count++;
quot = count/10;
rem = count % 10;
out = quot | (rem 4);
outp(portb, out);
gotoxy(10,10);
printf( output data = %-3d, count);
delay(delay_time);
}while(!kbhit());
init_eboard();
}
오류내용
link : warning lnk4098: defaultlib libc conflicts with use of other libs; use /nodefaultlib:library
p108.obj : error lnk2001: unresolved external symbol _gotoxy
p108.obj : error lnk2001: unresolved external symbol _clrscr
libcd.lib(crt0.obj) : error lnk2001: unresolved external symbol _main
debug/p108.exe : fatal error lnk1120: 3 unresolved externals
error executing link.exe.
p108.exe - 4 error(s), 1 warning(s)