Computing.Net > Forums > Programming > Question for DJGPP users

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Question for DJGPP users

Reply to Message Icon

Name: TempusElf
Date: September 30, 2002 at 15:31:39 Pacific
OS: Windows 98
CPU/Ram: Pentium III 128ram
Comment:

I wanted to compile C++ programs using DJGPP... after installing it, I wrote a "Hello World"-ish program to make sure that I installed it correctly and the strangest thing happened: it read iostream just fine but then proceeded to tell me that cout and endl were undifined(!!!)... I've read posts on the internet by other people with similar problems and they were always told to compile with gxx or to specify -lstdcxx... I've tried both of these things I've also looked through all the DJGPP documentation I could find... at this point im giving up and using BloodShed Dev-C++ ... but it still bothers me how it just doesn't want to work and I'm currious if anyone here has any clues as to what could be causing this problem



Sponsored Link
Ads by Google

Response Number 1
Name: cup
Date: October 1, 2002 at 01:59:28 Pacific
Reply:

after your includes, before any other code, add

using namespace std;

It is probably a namespace problem.


0

Response Number 2
Name: TempusElf
Date: October 1, 2002 at 05:59:57 Pacific
Reply:

hey cool, it worked... I've seen people use that namespace before but I don't know anything about it... i guess its time to do some research... thanks cup!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Question for DJGPP users

cgi for change user password www.computing.net/answers/programming/cgi-for-change-user-password/212.html

Qbasic problem! www.computing.net/answers/programming/qbasic-problem/783.html

MATLAB/MATCAD question(S) www.computing.net/answers/programming/matlabmatcad-questions/6920.html