Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Programming. | 3 guests |
Acmlm's Board - I2 Archive - Programming - Trying to learn c++, but it's not going so well... | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
Timmy Turner Octorok Level: 9 Posts: 2/24 EXP: 2496 For next: 666 Since: 08-08-04 From: UK Since last post: 380 days Last activity: 339 days |
| ||
While trying to learn c++ on bloodsheds dev-c++, and when i type in this: #include using namespace std; int main (int argc, char *argv[]) { cout << "Hello World!" << endl; cout << "Press ENTER to continue..." << endl; cin.get(); return 0; } It says it can't find iostream.h... What's wrong? |
|||
Monsty Newcomer Level: 5 Posts: 5/6 EXP: 357 For next: 172 Since: 03-21-04 From: USA Since last post: 426 days Last activity: 335 days |
| ||
I'm assuming Dev-C++ comes with all of the standard library headers and everything...so my guess is your directories are not set up correctly. Does Dev-C++ have its own IDE? You need to define somewhere for the compiler to look for those header files. I'm pretty sure that's the current problem. I've never used an IDE-less compiler, so I couldn't help you with developing a makefile or similar required file(or would it just be environment variables?), if that's the case. |
|||
Euclid Cheep-cheep Level: 23 Posts: 101/193 EXP: 65528 For next: 2195 Since: 03-15-04 From: Australia Since last post: 24 days Last activity: 7 days |
| ||
you should only need to put #include < iostream> for it to work. (without the space) At least for gcc anyway. |
|||
Timmy Turner Octorok Level: 9 Posts: 5/24 EXP: 2496 For next: 666 Since: 08-08-04 From: UK Since last post: 380 days Last activity: 339 days |
| ||
Thanks euclid.... that worked |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Programming - Trying to learn c++, but it's not going so well... | | | |