Welcome
Welcome to the forums of AntiRTFM's Absolute N00b Spoonfeed C++ Tutorials!

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

Why does this keep happening?

Ask ALL your questions here

Why does this keep happening?

Postby ThePainLingers on Sat Oct 17, 2009 11:22 pm

1>------ Rebuild All started: Project: Tutorial1, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'Tutorial1', configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>c:\program files\microsoft visual studio 9.0\vc\include\sal.h(932) : fatal error C1083: Cannot open include file: 'codeanalysis\sourceannotations.h': No such file or directory
1>Build log was saved at "file://c:\Users\ \Documents\Visual Studio 2008\Projects\Tutorial1\Tutorial1\Debug\BuildLog.htm"
1>Tutorial1 - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I can't make a simple hello world file, why not?.. it always fails.
ThePainLingers
 
Posts: 8
Joined: Sat Oct 17, 2009 11:04 pm

Re: Why does this keep happening?

Postby antiRTFM on Sat Oct 17, 2009 11:44 pm

post your code please (remember to use 'code' tags)
User avatar
antiRTFM
Administrator
 
Posts: 470
Joined: Sun Apr 13, 2008 9:10 am

Re: Why does this keep happening?

Postby ThePainLingers on Sun Oct 18, 2009 12:43 am

I lost it now, I used EXACTLY what it said in your video tutorial (I paused, and rewound at lease 10 times)
ThePainLingers
 
Posts: 8
Joined: Sat Oct 17, 2009 11:04 pm

Re: Why does this keep happening?

Postby noobgrammer on Sun Oct 18, 2009 8:27 am

:lol: lol It's not like you couldn't rewrite it again if its a simple hello world program. Just do what you think your suppose to do and if there are errors post the code so we can tell you how to fix it.
I need a compiler with a can of RAID built into it

I added a msn messenger just for programming feel free to email or add yourself to it
User avatar
noobgrammer
 
Posts: 198
Joined: Tue Aug 25, 2009 10:44 am
Location: Orlando

Re: Why does this keep happening?

Postby Knight313 on Sun Oct 18, 2009 11:40 am

In the error it says that codeanalysis\sourceannotations.h does not exist.

So somewhere in your program, where you are doing
#include codeanalysis\sourceannotations.h get rid of it.

Thats all I can tell u with the error code. Post the code if you want a better answer.
Knight313
 
Posts: 64
Joined: Mon Aug 03, 2009 7:20 pm

Re: Why does this keep happening?

Postby Knight313 on Sun Oct 18, 2009 11:42 am

sorry for double post:

But you are a visual studio user, make sure

#include "stdafx"

is at the very top of your program.
Knight313
 
Posts: 64
Joined: Mon Aug 03, 2009 7:20 pm

Re: Why does this keep happening?

Postby ThePainLingers on Sun Oct 18, 2009 12:57 pm

That's what I typed, should I remove the .h? o.o
ThePainLingers
 
Posts: 8
Joined: Sat Oct 17, 2009 11:04 pm

Re: Why does this keep happening?

Postby ThePainLingers on Sun Oct 18, 2009 12:59 pm

Code: Select all
#include "stdafx.h"




#include <iostream>


using namespace std;


int main()
{
   cout << "Hello World!" ;
   return 0;
}

(sorry for double post)
ThePainLingers
 
Posts: 8
Joined: Sat Oct 17, 2009 11:04 pm


Return to QA

Who is online

Users browsing this forum: No registered users and 0 guests