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

C/C++ Q/A
[1104] Re:Re:이 소스가 왜 오류나는지 모르겠군요.
박석순 [] 2334 읽음    2002-09-08 10:51
g++ 2.95.3-6버전입니다.
리눅스에서 컴파일하면 일단 컴파일은 되지만 출력이 이상합니다.
딱 3글자만 나오고 종료됩니다.
아래는 오류내용입니다. (윈도우즈xp에서 컴파일)

-----   시작 -------

ex.cpp: In function `int main()':
ex.cpp:12: wrong number of template arguments (2, should be 1)
J:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3/stl_ite
rator.h:875: provided for `template <class _Tp> ostream_iterator<_Tp>'
ex.cpp:12: ANSI C++ forbids declaration `out_iter' with no type
ex.cpp:12: initializer list being treated as compound expression
ex.cpp:12: initialization to `int' from `const char *' lacks a cast
J:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3/stl_alg
obase.h: In function `int __copy<int *, int, ptrdiff_t>(int *, int *, int, rando
m_access_iterator_tag, ptrdiff_t *)':
J:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3/stl_alg
obase.h:161:   instantiated from `__copy_dispatch<int *,int,__true_type>::copy(i
nt *, int *, int)'
J:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3/stl_alg
obase.h:188:   instantiated from `copy<int *, int>(int *, int *, int)'
ex.cpp:13:   instantiated from here
J:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3/stl_alg
obase.h:139: invalid type argument of `unary *'
J:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3/stl_alg
obase.h: In function `int __copy<reverse_iterator<int *>, int, ptrdiff_t>(revers
e_iterator<int *>, reverse_iterator<int *>, int, random_access_iterator_tag, ptr
diff_t *)':
J:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3/stl_alg
obase.h:161:   instantiated from `__copy_dispatch<reverse_iterator<int *>,int,__
true_type>::copy(reverse_iterator<int *>, reverse_iterator<int *>, int)'
J:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3/stl_alg
obase.h:188:   instantiated from `copy<reverse_iterator<int *>, int>(reverse_ite
rator<int *>, reverse_iterator<int *>, int)'
ex.cpp:16:   instantiated from here
J:/Dev-Cpp/bin/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3/stl_alg
obase.h:139: invalid type argument of `unary *'

---------------   끝   -------------

+ -

관련 글 리스트
1101 이 소스가 왜 오류나는지 모르겠군요. 박석순 1566 2002/09/07
1103     Re:이 소스가 왜 오류나는지 모르겠군요. 상구 1805 2002/09/08
1104         Re:Re:이 소스가 왜 오류나는지 모르겠군요. 박석순 2334 2002/09/08
1105             Re:Re:Re:이 소스가 왜 오류나는지 모르겠군요. 상구 2197 2002/09/08
1106                 Re:Re:Re:Re:컴파일러에 대해 박석순 1646 2002/09/08
1107                     Re:Re:Re:Re:Re:컴파일러에 대해 상구 1718 2002/09/08
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.