C1083: Cannot open include file: 'crtdefs.h'
Question
Thursday, June 15, 2006 9:58 PM
Hi ALL:
The Story so far ...
We are trying to get C++ Express to go!
So Far it is not doing anything except
giving cryptic error messages.
Build Log |
|
Command Lines |
|
Output Window |
|
Results |
|
Still not going any way fast!
#include <stdio.h>
using namespace std;
int main(int)
{
cout << "\nHello World!\n" << endl;
return 0;
}
// TIM.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
Any Suggestions?
All replies (3)
Thursday, June 15, 2006 10:05 PM ✅Answered
why do you have 2 main methods there? All what you need is:
#include <iostream>
using namespace std;
int main()
{
cout << "\nHello World!\n" << endl;
return 0;
}
Try the above sample and see how it goes.
Thanks,
Ayman Shoukry
VC++ Team
Thursday, June 15, 2006 10:07 PM ✅Answered
The file crtdefs.h should be in the same directory as the file stdio.h - you should check it is there and if it isn't you might want to try re-installing Visual C++ Express.
Monday, June 26, 2006 3:56 AM
Hi Jonathan Caves :
It works for me.
Thank you.