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
[55725] Re:컴파일이 안되요 ㅠㅠㅠㅠ
최보현.현지아빠 [uriduri] 1823 읽음    2009-01-08 03:33
#include <vcl.h>
#pragma hdrstop

#include "Main.h"
#include "windows.h"
#include "dir.h"
#include "Opcodes.h"
#include "SocketProce.h"
#include "EasyEncrypt.h"
#include "fstream.h"

위 부분의 인클루드 순서를 바꿔 보세요~

#include "windows.h"
#include "dir.h"
#include "Opcodes.h"
#include "SocketProce.h"
#include "EasyEncrypt.h"
#include "fstream.h"

#include "Main.h"

이런식으로~ 순서를 바꿔 보면 컴파일 해보시기 바랍니다





S시온스S 님이 쓰신 글 :
: 컴파일하면요 51개정도 에러가 나고 멈춰버리네요;
:
: Main.cpp 클래스에서 작업하다가 컴파일했는데 갑자기 저러네요; 작업한거 지우고 해봐도 똑같아요 에러가;;
:
: /* Main.cpp 상단이구요 */
: #include <vcl.h>
: #pragma hdrstop
:
: #include "Main.h"
: #include "windows.h"
: #include "dir.h"
: #include "Opcodes.h"
: #include "SocketProce.h"
: #include "EasyEncrypt.h"
: #include "fstream.h"
: //---------------------------------------------------------------------------
: #pragma package(smart_init)
: #pragma link "IdCustomTCPServer"
: #pragma resource "*.dfm"
: #define VERSION 100257
:
:
: /*Main.h 상단이에요 */
: #include <Classes.hpp>
: #include <Controls.hpp>
: #include <StdCtrls.hpp>
: #include <Forms.hpp>   
: #include <ExtCtrls.hpp>
: #include "IdCustomTCPServer.hpp"
: #include <IdBaseComponent.hpp>
: #include <IdComponent.hpp>
: #include <IdTCPServer.hpp>
: #include <IdCustomHTTPServer.hpp>
: #include <IdHTTPServer.hpp>
: #include <IdHTTP.hpp>
: #include <IdTCPClient.hpp>
: #include <IdTCPConnection.hpp>
:
:
:
: 에러보면  iosfwd 라고 뜨면서
:
:         // wchat_t TYPEDEFS
: typedef basic_ios<wchar_t, char_traits<wchar_t> > wios;
: typedef basic_streambuf<wchar_t, char_traits<wchar_t> >
:     wstreambuf;
: typedef basic_istream<wchar_t, char_traits<wchar_t> > wistream;
: typedef basic_ostream<wchar_t, char_traits<wchar_t> > wostream;
: typedef basic_iostream<wchar_t, char_traits<wchar_t> > wiostream;
: typedef basic_stringbuf<wchar_t, char_traits<wchar_t>,
:     ofstream<wchar_t> > wstringbuf;
:     allocator<wchar_t> > wstringbuf;
: typedef basic_istringstream<wchar_t, char_traits<wchar_t>,
:     allocator<wchar_t> > wistringstream;
: typedef basic_ostringstream<wchar_t, char_traits<wchar_t>,
:     allocator<wchar_t> > wostringstream;
: typedef basic_stringstream<wchar_t, char_traits<wchar_t>,
:     allocator<wchar_t> > wstringstream;  <<-- 이쪽이 문제라면서 뜨네요;;
: typedef basic_filebuf<wchar_t, char_traits<wchar_t> > wfilebuf;
: typedef basic_ifstream<wchar_t, char_traits<wchar_t> > wifstream;
: typedef basic_ofstream<wchar_t, char_traits<wchar_t> > wofstream;
: typedef basic_fstream<wchar_t, char_traits<wchar_t> > wfstream;
:
:
:
: fstream.h를 빼고 하면 ofstream이랑 ifstream을 써야하는데 클래스 못찾는다고 에러나고;;
: 뭐 아무것도 모르겠으니 미치고 팔짝뛰겠어요;
:
:
:
:
:
: //------------아래가 에러에요 ---------------//
:
: 빌드 시작: 2009-01-04 오후 3:12:30
: __________________________________________________
: "D:\My Documents\RAD Studio\LineageClient\LineageClient.cbproj" 프로젝트(Make개 대상):
: MakeObjs 대상:
:     Skipping the following files because they are up-to-date: EasyEncrypt.cpp;SocketProce.cpp
:     BccCompile 대상:
:         c:\program files\codegear\rad studio\5.0\bin\bcc32.exe -D_DEBUG;NO_STRICT -D_RTLDLL;USEPACKAGES -I"c:\program files\codegear\rad studio\5.0\include";"c:\program files\codegear\rad studio\5.0\include\dinkumware";"c:\program files\codegear\rad studio\5.0\include\vcl";..\LineageClient;"c:\program files\codegear\rad studio\5.0\include\Indy10" -y -v -vi- -k -r- -c  -tWM -tW -H=Debug\LineageClient.pch -Hr"vcl.h"="vcl2.h" -oDebug\Main.obj -w-par -Od Main.cpp
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\iosfwd(536,10): Error error 2094: E2094 'operator<' not implemented in type 'ofstream' for arguments of type 'wchar_t'
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\iosfwd(536,20): Error error 2040: E2040 Declaration terminated incorrectly
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\iosfwd(537,21): Error error 2040: E2040 Declaration terminated incorrectly
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(377,45): Error error 2238: E2238 Multiple declaration for 'typename _Iter::iterator_category'
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,45): Error error 2344: E2344 Earlier declaration of 'typename _Iter::iterator_category'
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'int' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'int' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'int' is not a class or struct type
:         c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2228: E2228 Too many error or warning messages
:     "LineageClient.cbproj" 프로젝트에 "BccCompile" 대상을 빌드했습니다(실패).
: "LineageClient.cbproj" 프로젝트에 "MakeObjs" 대상을 빌드했습니다(실패).
: "LineageClient.cbproj" 프로젝트를 빌드했습니다(실패).
: 빌드하지 못했습니다.
: c:\program files\codegear\rad studio\5.0\include\dinkumware\iosfwd(536,10): Error error 2094: E2094 'operator<' not implemented in type 'ofstream' for arguments of type 'wchar_t'
: c:\program files\codegear\rad studio\5.0\include\dinkumware\iosfwd(536,20): Error error 2040: E2040 Declaration terminated incorrectly
: c:\program files\codegear\rad studio\5.0\include\dinkumware\iosfwd(537,21): Error error 2040: E2040 Declaration terminated incorrectly
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'bool' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(377,45): Error error 2238: E2238 Multiple declaration for 'typename _Iter::iterator_category'
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,45): Error error 2344: E2344 Earlier declaration of 'typename _Iter::iterator_category'
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'signed char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'unsigned char' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'wchar_t' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(348,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(349,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(350,26): Error error 2406: E2406 Dependent type qualifier 'unsigned short' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(345,26): Error error 2406: E2406 Dependent type qualifier 'int' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(346,26): Error error 2406: E2406 Dependent type qualifier 'int' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2406: E2406 Dependent type qualifier 'int' is not a class or struct type
: c:\program files\codegear\rad studio\5.0\include\dinkumware\xutility(347,26): Error error 2228: E2228 Too many error or warning messages
:     경고 0개
:     오류 51개
: 경과 시간: 00:00:05.09

+ -

관련 글 리스트
55671 컴파일이 안되요 ㅠㅠㅠㅠ S시온스S 1488 2009/01/04
55725     Re:컴파일이 안되요 ㅠㅠㅠㅠ 최보현.현지아빠 1823 2009/01/08
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.