2010-03-17 7 views
1

이것은 이전에 질문했던이 질문에 대한 후속 질문입니다. 당신의 도움이 Issue compiling c++ in c++builderC++ Builder 컴파일 문제


빠른 정리 해보에 대한 BTW 덕분에 닐 버터 워스 (Butterworth). 저는 현재 대학용 C++ 프로그램을 개발 중이며, 개인용 컴퓨터 (Mac)에서 Netbeans 6.8을 사용했으며 모든 것이 완벽합니다. 그러나 지금은 프로그램이 실행

#include <string> 

: 내 윈도우 파티션 또는 대학 PC의 사용 C++ 빌더 2009 & 2010 내가 몇 다음 헤더 파일을 추가하여 해결 된 컴파일 오류를 얻고 있었다 그들을하려고 할 때 컴파일하지만 실행되지 않고 빈 콘솔 만 있습니다. 그리고 컴파일러의 이벤트 로그에 다음과 점점 오전 :

Thread Start: Thread ID: 2024. Process Project1.exe (3280) 
Process Start: C:\Users\Carlos\Documents\RAD Studio\Projects\Debug\Project1.exe. Base Address: $00400000. Process Project1.exe (3280) 
Module Load: Project1.exe. Has Debug Info. Base Address: $00400000. Process Project1.exe (3280) 
Module Load: ntdll.dll. No Debug Info. Base Address: $77E80000. Process Project1.exe (3280) 
Module Load: KERNEL32.dll. No Debug Info. Base Address: $771C0000. Process Project1.exe (3280) 
Module Load: KERNELBASE.dll. No Debug Info. Base Address: $75FE0000. Process Project1.exe (3280) 
Module Load: cc32100.dll. No Debug Info. Base Address: $32A00000. Process Project1.exe (3280) 
Module Load: USER32.dll. No Debug Info. Base Address: $77980000. Process Project1.exe (3280) 
Module Load: GDI32.dll. No Debug Info. Base Address: $75F50000. Process Project1.exe (3280) 
Module Load: LPK.dll. No Debug Info. Base Address: $75AB0000. Process Project1.exe (3280) 
Module Load: USP10.dll. No Debug Info. Base Address: $76030000. Process Project1.exe (3280) 
Module Load: msvcrt.dll. No Debug Info. Base Address: $776A0000. Process Project1.exe (3280) 
Module Load: ADVAPI32.dll. No Debug Info. Base Address: $777D0000. Process Project1.exe (3280) 
Module Load: SECHOST.dll. No Debug Info. Base Address: $77960000. Process Project1.exe (3280) 
Module Load: RPCRT4.dll. No Debug Info. Base Address: $762F0000. Process Project1.exe (3280) 
Module Load: SspiCli.dll. No Debug Info. Base Address: $759F0000. Process Project1.exe (3280) 
Module Load: CRYPTBASE.dll. No Debug Info. Base Address: $759E0000. Process Project1.exe (3280) 
Module Load: IMM32.dll. No Debug Info. Base Address: $763F0000. Process Project1.exe (3280) 
Module Load: MSCTF.dll. No Debug Info. Base Address: $75AD0000. Process Project1.exe (3280) 

나는이 문제를 해결하는 방법에 대한 도움이나 아이디어를 주시면 대단히 감사합니다.

P.S : 누구나 내가 C++ Builder를 사용하는 이유는 IDE 교수가 과제를 평가하는 데 사용하기 때문입니다.

+0

Codegear (과거 Borland)가 자체 컴파일러를 가지고 있기 때문에 대개 상당히 문제가 될 수 있습니다. 디버그 모드로 프로그램을 실행하려고 했습니까? 어디에서 멈 춥니 까? – Adi

+0

@Adi : 멈추지 않습니다. "프로젝트 종속성 확인 중 ..." "Project1.cbproj 컴파일 (디버그 구성)" "성공" – Carlos

+1

Ok. 하지만 FormCreate() 이벤트 나 main() 함수에서와 같이 코드 시작 부분에 중단 점을 넣으려고 했습니까? – Adi

답변

1

난 당신이 디버깅이 가능했다고 가정하고, 당신은 심지어 디버거() 주, ([F7] 또는 [F8]을 누르면)로 단계 수는도에 도달하기 전에 프로그램이 충돌처럼 본관. 개체의 전역 (정적) 인스턴스가 있고 개체의 생성자 코드가 충돌하는 경우 문제가 될 수 있습니다.

전역 개체가있는 경우 즉,

MyClass object; 
int main() 
{ .... }; 

동적으로 main()에 할당 해보십시오.

MyClass *object = 0; 
int main() 
{ object = new MyClass; 
.... 
};