Sponsored Content
Full Discussion: Hello UNIX programmers
Top Forums Programming Hello UNIX programmers Post 302987931 by Zabo on Sunday 18th of December 2016 04:20:22 PM
Old 12-18-2016
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:
Mod Comment 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 11:31 PM.. Reason: Add more CODE tags.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Perl - Programmers manual online?

I have never programmed in Perl (insert laughter, mock, etc. here ____) - so I need a sort of "Programming in Perl" covering the basics. I now have two Perl books, one is a 5 volume Unix resource kit, the other is "Mastering algorithms with Perl" - none of them explains how to produce "hello,... (11 Replies)
Discussion started by: AtleRamsli
11 Replies

2. News, Links, Events and Announcements

Good Essays For Programmers

Check the essays out. http://www.paulgraham.com (0 Replies)
Discussion started by: photon
0 Replies

3. What is on Your Mind?

Suggested venues to look for advanced C programmers

Can someone suggest any online venues to assist in recruiting a senior C programmer (looking for someone interested in working on kerberos code). I've tried a bunch of the open source and higher ed lists (this is for Univ. of Michigan). The commercial services such as Dice or monster yield a... (7 Replies)
Discussion started by: painman
7 Replies

4. UNIX for Dummies Questions & Answers

How does unix system administration, unix programming, unix network programming differ?

How does unix system administration, unix programming, unix network programming differ? Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies

5. Shell Programming and Scripting

Shell quoting rules for other languages programmers

I've seen so many times that programmers were confused about shell quoting and white spaces interpretation, that I decided to investigate that problem deeper. And my conclusion is that quoting in shells is very different from other programming languages. Programmers who have bigger experience in... (6 Replies)
Discussion started by: wyderkat
6 Replies

6. Shell Programming and Scripting

File Transfer from Window server to UNIX and UNIX to UNIX

Dear All, Can someone help to command or program to transfer the file from windows to Unix server and from one unix server to another Unix server in secure way. I would request no samba client. (4 Replies)
Discussion started by: yadavricky
4 Replies

7. Forum Support Area for Unregistered Users & Account Problems

Trojan is detected when I visit Programmers forum

When I visit Programmers forum my ESET Nod32 detects TrojanDownloader.Pegel.BH.trojan I don't know when it started, as I visited the site today after staying off-line a few days. (2 Replies)
Discussion started by: migurus
2 Replies

8. What is on Your Mind?

Multics Systems Programmers Manual as of 1969-04-01, comprising 996 PDF Files

While working on my current "UNIX history project" I ran across this: Jerry Saltzer created an online scanned copy of the Multics Systems Programmers' Manual (MSPM) in this directory. Based on the 1969-04-01 MSPM, the repo comprising 996 PDF files. In order to help preserver the MSPM, ... (1 Reply)
Discussion started by: Neo
1 Replies

9. What is on Your Mind?

The poorest of computer users are programmers...

Hi guys and gals... A mildly humourous blog from 2013, but I come into this category... ;oDD Languager: The Poorest Computer Users are Programmers (0 Replies)
Discussion started by: wisecracker
0 Replies
libgdk-x11-2.0.3(3)					 Introduction to Library Functions				       libgdk-x11-2.0.3(3)

NAME
libgdk-x11-2.0 - GTK+ Drawing Kit API DESCRIPTION
The libgdk-x11-2.0 library is an implementation of the GTK+ drawing kit for the X11 windowing system. It is used by GTK+ for low-level drawing operations. Most applications will not use GDK directly, but will use GTK+ components (see libgtk-x11-2.0(3)). To access the API documentation, you must install the developer version of the package. FILES
The following files are used by this application: /usr/lib/libgdk-x11-2.0.GTK+ Drawing Kit API shared library /usr/share/gtk-doc/html Location of developer documentation ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-base-libs SUNWg- | | |nome-base-libs-64 | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
libgdk_pixbuf-2.0(3), gdk-pixbuf-csource(3), libglib-2.0(3), libgobject-2.0(3), libgtk-x11-2.0(3), X11(5) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003, 2004. SunOS 5.10 31 Aug 2004 libgdk-x11-2.0.3(3)
All times are GMT -4. The time now is 06:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy