아주 기본적인 질문입니다.

yopang의 이미지


비쥬얼 스튜디오를 방금 설치했습니다.

떨리는 심정으로 다음 코드를 돌려보았는데요

오류가 나네요 ㅠㅜ...

오류 원인 좀 가르쳐 주시면 안될까요?

#include

int main(void)
{
printf("Hello world wn");
return 0;
}

------ 빌드 시작: 프로젝트: simple, 구성: Debug Win32 ------
빌드 시작: 2012-01-10 오전 8:46:49
InitializeBuildStatus:
"Debug\simple.unsuccessfulbuild"에 연결(touching)하고 있습니다.
ClCompile:
ewd.c
c:\documents and settings\ㄱ\my documents\visual studio 2010\projects\simple\simple\ewd.c(1): fatal error C1083: 포함 파일을 열 수 없습니다. 'studio.h': No such file or directory

빌드하지 못했습니다.

경과 시간: 00:00:00.43
========== 빌드: 성공 0, 실패 1, 최신 0, 생략 0 ==========

snowall의 이미지

그런 파일이 없다고 하는군요

studio.h를 stdio.h로 고치세요.

피할 수 있을때 즐겨라! http://melotopia.net/b

yopang의 이미지

stdio.h로 고치니

원하는 결과는 안나오고

========== 빌드: 성공 0, 실패 0, 최신 1, 생략 0 ==========

이렇게만 나오네효 ㅠㅜㅜㅜ

이건 왜 그런것인지요?ㅠㅜㅠㅜ

snowall의 이미지

C 프로그램이니까 빌드했으면 실행을 시켜야죠

피할 수 있을때 즐겨라! http://melotopia.net/b

yopang의 이미지

답변 감사드려효^^

실행결과가 나오네요 >_<

그런데 디버깅시키면

'simple.exe': 'C:\Documents and Settings\ㄱ\My Documents\Visual Studio 2010\Projects\simple\Debug\simple.exe' 로드, 기호가 로드되었습니다.
'simple.exe': 'C:\WINDOWS\system32\ntdll.dll' 로드, PDB 파일을 찾거나 열 수 없습니다.
'simple.exe': 'C:\WINDOWS\system32\kernel32.dll' 로드, PDB 파일을 찾거나 열 수 없습니다.
'simple.exe': 'C:\WINDOWS\system32\msvcr100d.dll' 로드, 기호가 로드되었습니다.
'[2740] simple.exe: 네이티브' 프로그램이 종료되었습니다(코드: 0 (0x0)).

이런게 나오는데요

이런거는 왜 나오는 것인지 알 수 있을까요?

snowall의 이미지

VS로 C++디버깅을 한번도 안해봐서 그건 모르겠네요...-_-;;;

피할 수 있을때 즐겨라! http://melotopia.net/b

익명 사용자의 이미지

'simple.exe': 'C:\Documents and Settings\ㄱ\My Documents\Visual Studio 2010\Projects\simple\Debug\simple.exe' 로드, 기호가 로드되었습니다.
# 실행 파일의 Debug 정보 등을 읽은 것으로 추정됩니다.
'simple.exe': 'C:\WINDOWS\system32\ntdll.dll' 로드, PDB 파일을 찾거나 열 수 없습니다.
'simple.exe': 'C:\WINDOWS\system32\kernel32.dll' 로드, PDB 파일을 찾거나 열 수 없습니다.
'simple.exe': 'C:\WINDOWS\system32\msvcr100d.dll' 로드, 기호가 로드되었습니다.
# simple.exe가 실행되기 위해 필요한 dll 파일로 부터 Debug 정보 등을 읽었다는 메시지 인 것으로 주청됩니다.
# PDB 파일을 찾거나 열 수 없습니다. 라는 말은 디버그 정보가 없다는 것으로 추측 되네요.
'[2740] simple.exe: 네이티브' 프로그램이 종료되었습니다(코드: 0 (0x0)).
# 실행파일이 실행 완료 된 것으로 추정됩니다.
# 코드 : 0 <= 이 이야기가 정상 종료를 뜻하는 것으로 생각됩니다만...

PS.
그냥 실행하는 것과 차이를 알 수 없다는 뜻이라면
printf("Hello world wn"); <= 이 라인등에 BreadPoint를 설정 후 재 시도 해 보세요.

처음부터 끝까지 추측 난무라 그닥 도움이 되진 않겠지만....

vivisection의 이미지

그건 브레이킹포인트 안걸어줘서 그래요..
안걸면 에러나 메모리누수정도만 체크하고 바로 종료됩니다
소스편집창 왼쪽에 마우스 이동해보면 모양변하는데가 있습니다
그때 클릭해보면 브레이킹포인트 걸립니다

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.