Unix/Linux Go Back    


Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Hello UNIX programmers

Programming


Tags
intrinsic.h, motif, x11

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-18-2016
Zabo Zabo is offline
Registered User
 
Join Date: Dec 2016
Last Activity: 19 December 2016, 10:57 AM EST
Location: Germany
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hello UNIX programmers

i have MOTIF installed X11
a easy program is saved as hello.c
there is the following message
where can i get the X11/intrinsic.h , file ???
need help to compile
my system : MX-16 Linux Debian Jessie / i386


Code:
hans@mx1:~/Documents
$ cc push.c -o push -lXm -lXt -lX11
In file included from push.c:2:0:
/usr/include/Xm/Xm.h:59:27: fatal error: X11/Intrinsic.h: No such file or directory
 #include <X11/Intrinsic.h>
                           ^
compilation terminated.
hans@mx1:~/Documents

Moderator's Comments:
Hello UNIX programmers may we ask you next time to please use code tags for your code and data, thanks and Welcome!


---------- Post updated at 10:20 PM ---------- Previous update was at 09:18 PM ----------

i have installed ALL libxt-dev upgrades and packages. Now it compiles. There are the following messages :#############################################################################


Code:
root@mx1:/home/hans/Documents# cc push.c -o push -lXm -lXt -lX11
push.c: In function ‘main’:
push.c:25:48: warning: passing argument 3 of ‘XtAddCallback’ from incompatible pointer type
     XtAddCallback(button, XmNactivateCallback, pushed_fn, NULL);
                                                ^
In file included from /usr/include/Xm/Xm.h:59:0,
                 from push.c:2:
/usr/include/X11/Intrinsic.h:1241:13: note: expected ‘XtCallbackProc’ but argument is of type ‘void (*)(struct _WidgetRec *, void *, struct XmPushButtonCallbackStruct *)’
 extern void XtAddCallback(
             ^
push.c: In function ‘pushed_fn’:
push.c:35:6: warning: incompatible implicit declaration of built-in function ‘printf’
      printf("Don't Push Me!!\n");
      ^
root@mx1:/home/hans/Documents#


Last edited by Don Cragun; 12-18-2016 at 10:31 PM.. Reason: Add more CODE tags.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell quoting rules for other languages programmers wyderkat Shell Programming and Scripting 6 10-18-2012 03:01 PM
Suggested venues to look for advanced C programmers painman What is on Your Mind? 7 11-30-2007 10:34 AM
Good Essays For Programmers photon News, Links, Events and Announcements 0 08-06-2004 03:53 PM
Perl - Programmers manual online? AtleRamsli UNIX for Advanced & Expert Users 11 03-21-2002 01:14 PM



All times are GMT -4. The time now is 01:23 AM.