ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to compile some programs on Ubuntu, and l got the following warning/error messages.
Where can l find X11/Intrinsic.h ...? Any assistance?
Thanking you in advance.
Jide
In file included from calc.c:14:
graphics.h:8:27: error: X11/Intrinsic.h: No such file or directory
In file included from calc.c:14:
graphics.h:19: error: expected specifier-qualifier-list before ‘WidgetClass’
graphics.h:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Arrow’
graphics.h:88: warning: parameter names (without types) in function declaration
graphics.h:89: warning: parameter names (without types) in function declaration
graphics.h:90: warning: parameter names (without types) in function declaration
graphics.h:91: warning: parameter names (without types) in function declaration
graphics.h:92: warning: parameter names (without types) in function declaration
graphics.h:93: warning: parameter names (without types) in function declaration
graphics.h:94: warning: parameter names (without types) in function declaration
graphics.h:95: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CreateMenu’
graphics.h:96: warning: parameter names (without types) in function declaration
In file included from calc.c:15:
callback.h:21: warning: parameter names (without types) in function declaration
callback.h:164: error: expected specifier-qualifier-list before ‘Widget’
In file included from calc.c:17:
simu.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘MdCycle’
simu.h:29: error: expected ‘)’ before ‘int’
calc.c: In function ‘ReadNewRun’:
calc.c:96: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
calc.c:106: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
calc.c:120: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
calc.c:121: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
calc.c:122: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
calc.c:123: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
calc.c: In function ‘SimArea’:
calc.c:883: warning: too few arguments for format
calc.c:893: warning: too few arguments for format
calc.c: In function ‘AssignType’:
calc.c:960: error: ‘False’ undeclared (first use in this function)
calc.c:960: error: (Each undeclared identifier is reported only once
calc.c:960: error: for each function it appears in.)
calc.c: In function ‘Disl’:
calc.c:1216: warning: ' ' flag used with ‘%p’ printf format
calc.c:1216: warning: format ‘% p’ expects type ‘void *’, but argument 2 has type ‘int’
calc.c: In function ‘AllocateN’:
calc.c:1288: error: ‘True’ undeclared (first use in this function)
make: *** [calc.o] Error 1
callback.c:14:23: error: Xm/ArrowB.h: No such file or directory
callback.c:15:22: error: Xm/PushB.h: No such file or directory
callback.c:16:22: error: Xm/Scale.h: No such file or directory
callback.c:17:21: error: Xm/Text.h: No such file or directory
callback.c:18:25: error: Xm/ToggleBP.h: No such file or directory
callback.c:19:24: error: Xm/MwmUtil.h: No such file or directory ...
callback.c:14:23: error: Xm/ArrowB.h: No such file or directory
callback.c:15:22: error: Xm/PushB.h: No such file or directory
callback.c:16:22: error: Xm/Scale.h: No such file or directory
callback.c:17:21: error: Xm/Text.h: No such file or directory
callback.c:18:25: error: Xm/ToggleBP.h: No such file or directory
callback.c:19:24: error: Xm/MwmUtil.h: No such file or directory ...
Do l need to install another package?
Yes.
To run programs often packages with shared libraries are needed. To compile programs, you also need the header (*.h) files for those libraries which are most often in separate packages.
E.g. If a program needs the package "libncurses5" to run, you need "libncurses5-dev" to compile it.
So, in your case, the compiler misses the header files "ArrowB.h", "PushB.h", and so on.
To find out about which package this is in, I googled for "ToggleBP.h" and "package". The top link found indicates this is the "lesstif2" library package.
On Ubuntu/Debian you can then do:
Code:
apt-cache search lesstif2 | fgrep dev
lesstif2-dev - development library and header files for LessTif 2.1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.