SLUG Mailing List Archives
[SLUG] Re: Link X Window (Benno)
- To: slug@xxxxxxxxxxx
- Subject: [SLUG] Re: Link X Window (Benno)
- From: jam@xxxxxxxxx
- Date: Sun, 20 Feb 2005 08:02:29 +0800 (WST)
> >Newbie, acquired 64 bit SuSE 9.1 late last year.
> >I am up and running, and can compile and link a console C application,
> >but cannot link with the X Window modules.
> >I am getting unresolved messaged for functions like:
> > TheDisplay =3D XOpenDisplay( "" );
> > XCloseDisplay( TheDisplay );
> > =20
> >I have searched lots of international forums and posted questions onto
> >SuSE lists without an answer.
> >I often get the response "Why don't you use ... ?"
> >After 41 years of programming I feel that I can say "I want to use X Windo=
> >I have searched my libraries and environment variables et cetera but,
> >being new to Linux, I am (obviously) missing something. In "the good old
> >days" one just set paths etc, but now there are often hidden, assumed
> >bits of information such as environment entries.
> >So, obviously, I cannot see what I am missing.
> >I would appreciate it if somebody could give me a nice (simple?) list
> >of things I should check. I was sent a sample programme, which runs on
> >my PC, which compiles on my PC, but won't link (even with the make file se=
> >I've just arrived back in Australia and look forward to meeting up with you
> >guys. Sorry that my son will be visiting over next W/E; looks interesting
> =46rom memory I use -lX11, and -L/usr/X11R6/lib/.
Step 1: yast is your friend
run yast from menu, or from cmd line as yast2
ensure your package selections include C/C++ development, X
Step 2: often the steps for another app are: ./configure; make; make
Beware: Only the for-munnie version will let you do this. the
free-download did not. I believe that a full 9.2 is available
The above system setup DOES work, I use(d) it, (9.2 now), so you are
looking at your make files etc to find what is wrong.