![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Xwindows | amu | UNIX Desktop for Dummies Questions & Answers | 0 | 04-08-2008 06:51 AM |
| Xwindows | amu | Linux | 0 | 04-08-2008 06:42 AM |
| xwindows over ssh after sudo? | scottsl | UNIX for Advanced & Expert Users | 3 | 08-26-2006 12:54 AM |
| Xwindows on a HMC | pagink | AIX | 5 | 06-21-2006 02:43 AM |
| XWindows on Mac OSX | Alpha_Harblo | UNIX for Dummies Questions & Answers | 2 | 08-05-2001 10:28 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
XWindows
I have written some Xwindows files would like to know how to compile them
tried this command gcc -o main main.o -lXt -lX11 gives errors like could not find Xt & X11 help please |
| Forum Sponsor | ||
|
|
|
|||
|
Re
here is the program
main.c 1 #include <X11/Intrinsic.h> 2 #include <Xm/Xm.h> 3 #include <Xm/Label.h> 4 5 XtAppContext context; 6 XmStringCharSet char_set = XmSTRING_DEFAULT_CHARSET; 7 Widget toplevel,label; 8 9 main(argc,argv) 10 int argc; 11 char* argv[]; 12 { 13 Arg a1[10]; 14 int ac = 0; 15 toplevel = XtAppInitialize(&context,"",NULL,0,&argc,argv,NULL,NULL,0); 16 label = XmCreateLabel(toplevel,"label",a1,ac); 17 XtmanageChild(label); 18 XtrealizeWidget(toplevel); 19 Xtmainloop(); 20 } after this: cc -c main.c cc -o main main.o -lXt -lX11 -L$pathtoXt -L$pathtoX11 Last edited by wojtyla; 02-19-2005 at 10:31 AM. |