![]() Perhaps you accidentally picked an option to specify your own or not install the compiler or whatever? You're allowed to do that, but it's generally not advisable unless you know what you are doing, and it isn't necessary. = Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =Ĭode blocks normally defaults to install the compiler with the IDE for you automatically, hassle free. Did you forget to add '#include "stdafx.h"' to your source?ġ>Build log was saved at "file://c:\Documents and Settings\me\Desktop\aa\aa\Debug\BuildLog.htm" #include Ĭout - Build started: Project: aa, Configuration: Debug Win32 -ġ>.\aa.cpp(1) : warning C4627: '#include ': skipped when looking for precompiled header useġ> Add directive to 'stdafx.h' or rebuild precompiled headerġ>.\aa.cpp(8) : fatal error C1010: unexpected end of file while looking for precompiled header. ![]() I tried to get it to print Hello World with this code but it didn't work. I have downloaded Microsoft Visual C Express Edition and tried using it. ![]() Put the line I posted right BEFORE "return 0 ", not after. Any setting would be a specific Dev C setting. It has nothing to do with setting a path in Windows. I believe Visual C and Code Blocks keep the window open after completion and Dev C does not. There may be some way within Dev C to keep that window open. You can add this line at the bottom to make it pause. I believe on Dev C , it closes immediately. The program will run then immediately disappear when the program is finished, which will happen in the blink of an eye.ĭepending on the IDE you use, the execution window will either stay open or close immediately. I got the code from .ĭo I have to configure a setting or something? I remember when I was working with Python, I had to reconfigure some sort of path directory for Windows. I went to run it and a window appeared really quickly on the screen. I complied the code, and it did not show any errors. I tried to run the following code but it doesn't seem to do anything. I decided to pick up C so I downloaded Dev-C complier. I have a bit of experience in Python and ActionScript3.
0 Comments
Leave a Reply. |