Skip to ContentSkip to Footer
시작 내용
- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- 64비트 컴파일후 실행시 printf에 값이 안 찍힙니다.
HP-UX
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
-
정보
- 커뮤니티
- Welcome
- 시작하기
- 포럼 FAQ
- 랭킹 개요
- 참여규칙
- Tips and Tricks
- 접촉
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- 다른 HPE 사이트
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
포럼
-
블로그
-
정보
-
한국어
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 친구에게 이메일 보내기
- 부적절한 컨텐트 신고
날짜: 05-18-2009 10:00 PM
날짜: 05-18-2009 10:00 PM
64비트 컴파일후 실행시 printf에 값이 안 찍힙니다.
소스는
char *xxx()
{
char cc;
strcpy(cc, "xxxx");
return((char *)cc);
}
void main()
{
char bb;
printf("internal function xxx \n");
printf("char \* return : \n", xxx());
printf("strcpy before %ld line\n", __LINE__);
strcpy(bb, xxx());
printf("strcpy after %ld line\n", __LINE__);
printf("strcpy result : \n", bb);
exit(0);
}
컴파일은
cc -g -w -Ae -Wl,+s -Wl,+n +DS2.0 +DA2.0W +DD64 -DSS_64BIT_SERVER ./$1.c ./aa.o -o ./$1
수행후 실행을 해보면
" printf("char \* return : \n", xxx()); " 이부분에서 printf문이 안 찍힙니다.
뭐가 문제인지 못찾겠습니다.
고수님들의 고언을 부탁드립니다.
char *xxx()
{
char cc;
strcpy(cc, "xxxx");
return((char *)cc);
}
void main()
{
char bb;
printf("internal function xxx \n");
printf("char \* return : \n", xxx());
printf("strcpy before %ld line\n", __LINE__);
strcpy(bb, xxx());
printf("strcpy after %ld line\n", __LINE__);
printf("strcpy result : \n", bb);
exit(0);
}
컴파일은
cc -g -w -Ae -Wl,+s -Wl,+n +DS2.0 +DA2.0W +DD64 -DSS_64BIT_SERVER ./$1.c ./aa.o -o ./$1
수행후 실행을 해보면
" printf("char \* return : \n", xxx()); " 이부분에서 printf문이 안 찍힙니다.
뭐가 문제인지 못찾겠습니다.
고수님들의 고언을 부탁드립니다.
위에 명시된 의견은 Hewlett Packard Enterprise가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .