[gameprogrammer] Re: (no subject)

I have Vista and do not have any issues.  I tend to side with the
general concensus here that the problem lies in your project settings.
 Try building the attached project.  It has one .cpp file with your
hello world code.  It does not include stdafx.h as this is not needed
for this project.

I created with the following steps:
 - Create a new Project
 - In the new project wizard I gave it the name Test and then, in the
next window I clicked NEXT instead of FINISH.  This allowed me to
de-select the Precompiled headers and check the "Create Empty Project"
checkbox.
 - I then added a new source file called main.cpp and pasted in your code

After saving it builds and runs fine.  The project I sent should
contain the correct settings to allow you to build it.

Let me know if this works for you.

As a rule, unless I am using a specific wizard in VC I will always
create an empty project and add the code myself.  This is how I
avoided this kind of build error.  Saying that however, I have
recently switched from using VC Express to using DevC++ With MinGW.  I
want to avoid the MS baggage because at some point I may want my code
to be cross-platform.

Regards

Richard

2009/7/1 Julian Stanley <me@xxxxxxxxxxxxxxxxx>:
> I cannot compile anything. I have the latest version also I believe, and does 
> it maybe have something to do with the fact that I have vista? I know it 
> can't be the power of my computer (mine is quad 2.44....) but vista often has 
> compatibility issues (yes, I tried running as admin)
>
>
> -Julian
>
> -----Original Message-----
> From: "Richard Sabbarton" [richard.sabbarton@xxxxxxxxx]
> Date: 06/30/2009 09:24 PM
> To: gameprogrammer@xxxxxxxxxxxxx
> Subject: Re: [gameprogrammer] Re: (no subject)
>
> Hi Julian,
>
> I have VC++ 2008 Express and it is working OK for me.  Did you install
> the MSDN documentation as well?  If so, have you tried compiling any
> of the examples that come with it?
>
> If you want to zip and post your project then I can try it here for you.
>
> Also, do you have the latest version (SP1 I think) from Microsoft.
>
> Regards
>
> Richard
>
> 2009/6/30 Julian Stanley <me@xxxxxxxxxxxxxxxxx>:
>>
>> Hi,
>>
>> I am trying to get microsoft visual C++ (2008 express) working, but it 
>> always gives me this error every time I build it. I have tried cleaning 
>> solution, restarting my computer, and I have waited like a month and it 
>> still gives me the same error, any suggestions?
>>
>> 1>------ Build started: Project: consoletestagain, Configuration: Debug 
>> Win32 ------
>> 1>Compiling...
>> 1>consoletestagain.cpp
>> 1>c:\users\hp\documents\visual studio 
>> 2008\projects\consoletestagain\consoletestagain\consoletestagain.cpp(8) : 
>> fatal error C1010: unexpected end of file while looking for precompiled 
>> header. Did you forget to add '#include "stdafx.h"' to your source?
>> 1>Build log was saved at "file://c:\Users\HP\Documents\Visual Studio 
>> 2008\Projects\consoletestagain\consoletestagain\Debug\BuildLog.htm"
>> 1>consoletestagain - 1 error(s), 0 warning(s)
>> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>> -Julian
>>
>> ---------------------
>> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>>
>>
>>
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>

Other related posts: