내가 (명령 행 g++ *.hpp *.cpp 2> log.txt
로) 내 프로젝트를 컴파일하려고 할 때마다, 그것이 내가 무엇을 얻을 :G ++ 경고 : 지원되지 않는 파일 형식을 위해 만들어진 연결되는 구조하지
log.txt
:
ld: warning: in configfile.hpp, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in erase.hpp, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in filehandler.hpp, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in insert.hpp, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in operation.hpp, file was built for unsupported file format which is not the architecture being linked (x86_64)
왜 이런 일이 일어나는 지 알고 싶습니다. OSX 10.6 (최신 개발자 도구 사용)을 사용 중입니다.
헤더 파일을 컴파일하면 컴파일 과정의 일부인 미리 컴파일 된 헤더가 생성됩니다. 그의 오류는 연결 단계와 관련이 있습니다. – flumpb
@kisplit - 나는 그가 어떤 작품으로 단계적으로 내려 갔는지보고 싶다. 그리고 나서 그는 미리 컴파일 할 수있다. 그는 여기서 그 과정을 이해하지 못해서 한 번에 한 걸음 더 나아가 그를 잘 섬길 수 있다고 생각했습니다. – KevinDTimm