함께 만드는 별빛 세상, 천문노트 · Since 2001

matrix2 컴파일 실행 에러 문의입니다.

황태욱 2004-01-08 (목) 06:06 8695 5
목록
이전글 다음글

웹 아카이브(2020-10-24 기록)에서 복원한 글입니다.

release 인 경우에는
Asteroid.cpp
E:\back\MatriXs2\MatriXsLib\Asteroid.cpp(12) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Comet.cpp
E:\back\MatriXs2\MatriXsLib\Comet.cpp(12) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Coordinate.cpp
E:\back\MatriXs2\MatriXsLib\Coordinate.cpp(99) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Date.cpp
E:\back\MatriXs2\MatriXsLib\Date.cpp(228) : fatal error C1010: unexpected end of file while looking for precompiled header directive
DateTime.cpp
E:\back\MatriXs2\MatriXsLib\DateTime.cpp(78) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Ecliptic.cpp
E:\back\MatriXs2\MatriXsLib\Ecliptic.cpp(54) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Equatorial.cpp
E:\back\MatriXs2\MatriXsLib\Equatorial.cpp(221) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Galactic.cpp
E:\back\MatriXs2\MatriXsLib\Galactic.cpp(44) : fatal error C1010: unexpected end of file while looking for precompiled header directive
GST.cpp
E:\back\MatriXs2\MatriXsLib\GST.cpp(79) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Horizon.cpp
E:\back\MatriXs2\MatriXsLib\Horizon.cpp(62) : fatal error C1010: unexpected end of file while looking for precompiled header directive
LCT.cpp
E:\back\MatriXs2\MatriXsLib\LCT.cpp(78) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Location.cpp
E:\back\MatriXs2\MatriXsLib\Location.cpp(22) : fatal error C1010: unexpected end of file while looking for precompiled header directive
LST.cpp
E:\back\MatriXs2\MatriXsLib\LST.cpp(72) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Matrix.cpp
E:\back\MatriXs2\MatriXsLib\Matrix.cpp(274) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Moon.cpp
E:\back\MatriXs2\MatriXsLib\Moon.cpp(197) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Planet.cpp
E:\back\MatriXs2\MatriXsLib\Planet.cpp(377) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Sun.cpp
E:\back\MatriXs2\MatriXsLib\Sun.cpp(105) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Time.cpp
E:\back\MatriXs2\MatriXsLib\Time.cpp(64) : fatal error C1010: unexpected end of file while looking for precompiled header directive


이런 에러가 납니다.

debug 로는 컴파일은 되는데,
실행이 안 되서 뒤져 보니

FILE *fp = fopen("debug/star.dat","rt");
for (int i=0;i<10000;i++)<br /> {
float ra,dec,mag;
char type;

int result;
result = fscanf(fp,"%f %f %c %f",&ra,&dec,&type,&mag);
nStar++;
if (EOF == result)
break;

star[i].equ = Equatorial(ra,dec);
star[i].hor = Horizon(star[i].equ, lst, Util::deg2rad(37.8));
star[i].type = type;
star[i].mag = mag;
}
fclose(fp);

이 부분에서 파일 오픈 여부를 체크 하지 않아서
생긴 문제인 것 같습니다.

star.dat 파일이 없군요.

release 저 놈을 어떻게 고쳐야 할지.

그리고 start.dat 는 어디서 받아야 하는지
알고 싶습니다.

댓글 5

황태욱2004-01-08 06:06

star.dat 는 찾았습니다.

data.zip 를 보니까
그 중에 star.dat 가 있네요.

fscanf 포맷을 보니까
star.dat 와 포맷이 같은 것 같습니다.

한번 돌려 보겠습니다.

지용호2004-01-12 12:12

수고하십니다. ^^

이도원2004-01-13 20:20

거 전에 형철이 형이 이야기 한거 아닌가.. menu에서 찾다보면
setting에서 yu/stdafx.h를 지우면 compile 되는걸로 아는데 한번 해보세요

황태욱2004-01-14 03:03

아.. 알겠습니다.

게시판 훑었는데도 잘 몰랐네요.

워낙 초보다 보니..^^

유동일2004-07-12 11:11

와..

로그인하면 댓글을 쓸 수 있습니다.

무료 천문 라이브러리 - MatriXs

총 103건
번호제목글쓴이날짜조회
공지 MatriXsLib 1.0+7 이형철06-1523803
102 MatriXsLib 1.0+7 이형철06-1523803
101 안녕들하세요~^^+1 이도원06-228248
98 이렇게 좋은 소스가..^^+2 황태욱01-077880
97 요즘 다들 머하시나요?+5 이도원12-107666
96 c 를 공부하다가+5 이도원11-137292
95 Astronomical Algorithm..+4 김창환10-317662
94 침체기 같네요...+3 이도원09-227003
글쓰기