kim@unagi.cis.upenn.edu (JEE-IN KIM) (01/31/91)
Hello,
I really appreciate for your kind answering my previous question.
Here is another one.
In my g++ program, I wanted to include both <stream.h> and X11 things
as follows:
#include <stream.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
...
I am afraid they do not like each other. Though I tried the
followings and it reduces number of error messages such as "type
conflict, shadowing, etc.", it did not work either:
#include <stream.h>
extern "C" {
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
}
...
Is it a system-specific problem or I did the wrong thing?
Could you please let me know what is the problem?
Additionally, what are the general differences between C and C++ when
we are programming X-window applications? I had no trouble with C
programming. Thanks a lot.
Best,
Jee-In
---------------------------
Jee-In Kim
kim@unagi.cis.upenn.edu
---------------------------