C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[36499] Re:급질문요.......
유영인 Cuperido [cuperido] 792 읽음    2004-07-26 23:22
프로젝트를 만드실때 Win32 Application 이 아닌 Console Project로 만들어보세요.


cuperido

조승희 님이 쓰신 글 :
:
: 안녕하세요 링크에러가 나서요
: 초보인데요
: myfun.h=====================================
: #include <stdio.h>
:
: void sum();
: void mul();
:
:
: extern int i, j;
: extern int x, y;
: extern int res;
:
: sample1.c==================================
: #include <stdio.h>
: #include "myfun.h"
:
: int res;
:
: void main()
: {
:   
:    sum();
: }
:
: sample2.c================================
: #include "myfun.h"
:
: int i=10, j=10;
:
: void sum()
: {
:   
:    res = i + j;
:
:    printf("res = i + j ==> %d\n", res);
:    mul();
:
:  }
:
:   
: sample3.c================================
:  #include "myfun.h"
:
: int x=20, y=20;
:
: void mul()
: {
:
:   res =  x * y;
:
:   printf("res = i * j ==> %d\n", res);
: }
:
:
: 컴파일은 되는데 링크에러가 다음과 같이 나옵니다
: Linking...
: LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
: Terran.exe : fatal error LNK1120: 1 unresolved externals
: Error executing link.exe.
:
: 해결좀 해주세요
:
:
:

+ -

관련 글 리스트
36491 급질문요....... 조승희 719 2004/07/26
36499     Re:급질문요....... 유영인 Cuperido 792 2004/07/26
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.