compiler nightmares

P

Peter Nilsson

Pradyut said:
on running this program on some linux versions, it does not compile
bcc test.cpp

---------------------------------------
#include <iostream.h>
using namespace std;
int main()
{
std::cout <<"test";
return 0;
}

Try comp.lang.c++ down the hall.
 
K

Krishanu Debnath

Pradyut said:
on running this program on some linux versions, it does not compile
bcc test.cpp

---------------------------------------
#include <iostream.h>
using namespace std;
int main()
{
std::cout <<"test";
return 0;
}

Ask your question to a c++ newsgroup or the newsgroup of the compiler
you
are using.

Krishanu
 
K

Keith Thompson

PRadyut said:
sorry there
but some considerations could be nice
thanks
Pradyut

Are you saying that people were rude to you? They really weren't.
Three different people gave you the best possible advice. What
"considerations" are you looking for? Or did I misunderstand you?
I've seen people flamed for off-topic posts; believe me, you weren't.

And here's some more advice. Please provide some context when you
post a followup; don't assume that readers can easily see the article
to which you're replying. groups.google.com gives you an interface
that's very different from the ones most of us use (and in some ways,
it's inferior).

If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
 
M

Martin Ambuhl

Pradyut said:
on running this program on some linux versions, it does not compile
bcc test.cpp

Your filename and your code seem to C++, not C. For that different
language, optimized for obfuscation, go to comp.lang.c++, but check
their FAQ and follow the newsgroup first (as you should have done before
posting to comp.lang.c) and fix
#include <iostream.h>
^^^^^^^^^^^
The header name in C++ is <iostream> (and neither it nor <iostream.h>
exists in C).
 
M

Martin Ambuhl

PRadyut said:
sorry there
but some considerations could be nice

I agree. Some considerations that would be nice are
a) to follow a newsgroup before posting to a newsgroup
b) to check the FAQ before posting to a newsgroup
and
c) to post questions to a newsgroup only if on-topic.

You have gotten several polite recommendations that you ask your
questions about C++ in the C++ newsgroup, comp.lang.c++. Those who
suggested that to you have shown you great consideration, while you
showed none at all to us.
 
I

Igmar Palsenberg

Pradyut said:
---------------------------------------
#include <iostream.h>
using namespace std;
int main()
{
std::cout <<"test";
return 0;
}

Yeah, start thinking and try to find some answers yourself *before*
posting questions to the *wrong* newsgroup.

*please* read the C++ standard section 17.4.1.2 to learn what headers
files you should include.


Igmar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

compiler nightmares 5
difference in header files 11
java calc 6
jsf project 1
runtime error 4
linked list error 4
double linked list delete problem 2
calling non-static nested class 3

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top