Problems with MSVC++
hi. I have the introductory version of MSVC++ 6.00 and I am trying to compile a simple hello world application but I can''t!
I followed all the instructions on this page : http://www.cs.virginia.edu/~csadmin/pc/pclabs/vc_faq/vc_intro.html
but I get this error message:
Compiling...
StdAfx.cpp
Compiling...
lab00.cpp
lab00src.cpp
c:\program files\microsoft visual studio\myprojects\lab00\lab00src.cpp(15) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...
Error executing cl.exe.
lab00.exe - 1 error(s), 0 warning(s)
could anyone assist?
Start over and use the wizard to setup the project
..or put
at the top of the .cpp file. You choose to use a precompiled header.
..or put
#include "StdAfx.h"
at the top of the .cpp file. You choose to use a precompiled header.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
You didn''t happen to have done any silly crap like #include <lab00src.cpp> (including an implementation file), did you? If so, stop it and never do it again.
no I didn''t do anything like that. I did exactly what it said on the webpage above (I posted the address in my last post).
Magmai, I tried that but it didn''t compile.
I see a few wizards but none of them seem suitable.
any other ideas?
btw thanks for the speedy responses!
Magmai, I tried that but it didn''t compile.
I see a few wizards but none of them seem suitable.
any other ideas?
btw thanks for the speedy responses!
Well, that usually is the case when you don''t have a closing } or some other thing that just isn''t matched up properly.
Did you copy and paste?
-------------------------
(Gorgeous graphics)+(beautiful sound effects)+(symphonic music)+(no gameplay) != Good game
Did you copy and paste?
-------------------------
(Gorgeous graphics)+(beautiful sound effects)+(symphonic music)+(no gameplay) != Good game
-------------------------GBGames' Blog: An Indie Game Developer's Somewhat Interesting ThoughtsStaff Reviewer for Game Tunnel
Ok I tried it myself. It compiled fine for me.
I also noticed that StdAfx.cpp is not one of my files.
All I had was main.cpp
Compiling...
main.cpp
Linking...
HWGamedev.exe - 0 error(s), 0 warning(s)
It works fine.
I think the problem is that you picked the wrong kind of Console Application.
See, an empty project works. I think you picked a simple application instead.
Try to start over and see.
-------------------------
(Gorgeous graphics)+(beautiful sound effects)+(symphonic music)+(no gameplay) != Good game
I also noticed that StdAfx.cpp is not one of my files.
All I had was main.cpp
Compiling...
main.cpp
Linking...
HWGamedev.exe - 0 error(s), 0 warning(s)
It works fine.
I think the problem is that you picked the wrong kind of Console Application.
See, an empty project works. I think you picked a simple application instead.
Try to start over and see.
-------------------------
(Gorgeous graphics)+(beautiful sound effects)+(symphonic music)+(no gameplay) != Good game
-------------------------GBGames' Blog: An Indie Game Developer's Somewhat Interesting ThoughtsStaff Reviewer for Game Tunnel
it finally worked, problem solved. you were right about that simple application stuff, GBGames. I was using the other options.
I didn''t realise that it would make such a difference. why does it anyway?
thanks
I didn''t realise that it would make such a difference. why does it anyway?
thanks
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement