MOTIF PW library for file-search routines ???


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers MOTIF PW library for file-search routines ???
# 1  
Old 10-22-2019
MOTIF PW library for file-search routines ???

Hi there. Smilie
I found MOTIF programming code with file dialogs.
In the compiling description is the speak of a Libarary PW.
This compiling description is mentioned :
gcc -o newone test.c -lXm -lXt -lX11 -lPW

Has anyone heared about that Library. ?

After compiling GCC is asking for the PW Library and didn't found it. Even in the updated Debian Linux package.
How could that be possible ?
Kindly Regards
SM
# 2  
Old 10-22-2019
What does this command show:

Code:
find /usr/lib/ -type f -name 'libXm*'

If you find no files, then you need to install Xwindows (and Motif because X is written using Motif )

Get back to us if there are questions.
# 3  
Old 10-23-2019
The files are there.

Hi , i have checked out.
The files are there.
Actually i have installed the CLANG compiler that works better.
I take my attention to code that is NOT including the PW Library.
Thank you
MH

PS. is also not finding the PW Library. I think PW Library is a nonsense term. I found it in a serious programmers book.
But nonsense , because in other good books of MOTIF this Library is never mentioned.

Last edited by Sennenmut; 10-23-2019 at 05:06 AM..
# 4  
Old 10-23-2019
I've found a man page for libPW here. Its use appears to be deprecated, which is probably why you can't find it. If you wanted to run the programs that link to it I might be inclined to identify the functions in that library and see if equivalents exist in the standard C library.

Andrew
# 5  
Old 10-23-2019
thanks andrew

thanks andrew ,
yes its deprecated. I think i will focus my mind on the main X11 Window style functions and libraries.
The descriptions in one of the books have strange code such like this PW library and for example
<X11/Intrinsic.h> in the header which is also not find by GCC or clang compiler.
However Intrinsics files exit on my computer but not in a context and manner which is described
in this one book programming style.

All is working good. GUIs are opening immediatelly from most examples.
MOTIF is a good thing.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Fatal error: 'Xm/Xm.h' file not found , motif installed

Hello, i have installed open-motif -2.3.8_1 X11 Toolkit on freebsd32bit machine. wanna compile a little script. script is ok. already compiled on other machine (linux) the message is as follows cc -o button button.c -lXm -lXt -lX11 button.c:3:10: fatal error: 'Xm/Xm.h' file not found... (5 Replies)
Discussion started by: Sennenmut
5 Replies

2. AIX

Embedding Runtime Search Path into Library on AIX

My product has 2 libraries say "x & y". x depends on y. During the installation of my products package, user will be prompted for his own location to copy my product libraries. Installation will copy libraries "x & y" and create my product specific ENV variable say "MYPATH" pointing to User... (4 Replies)
Discussion started by: erra_krishna
4 Replies

3. Shell Programming and Scripting

Please review error routines in my ksh script

The script distributes files from an AIX server using iether ftp or sftp depending on the constraint of the destination server. I am interested in having the error checking routine critically reviewed. I will only include an excerpt from the script concerning error trapping: (where $FTP_OUT is the... (7 Replies)
Discussion started by: peleton
7 Replies

4. Solaris

Motif 2.1 migration from Motif 1.2

An application was getting built using Motif 1.2 that used come along Solaris 6 OS for compiling and linking. Application is run using Motif 2.1 on Solaris 10 and it is working fine. Application compilation and linking is working fine on Solaris 10 with Motif 2.1.0 but running the application... (0 Replies)
Discussion started by: shafi2all
0 Replies

5. Shell Programming and Scripting

assistance needed to add 2 other routines to my script

Hello guys, In my script, I need to add two other routines where I Manipulate the files with a 'x' The routine looks at CLI named qip-getobjectprof that references a input file named hosts_list.txt Then I use the CLI named qip-setobject to set the orignal name with an 'x'and move the... (3 Replies)
Discussion started by: richsark
3 Replies

6. Solaris

Executable takes indefinite time to search for shared library

Hi, I have an executable that takes indefinitely long time to search for the libsendfile.so in particular solaris machines only. The library is actually in the /lib folder. Where as it works fine on few of the machines, it takes long time in few others. I have checked crle options. Its... (1 Reply)
Discussion started by: kk2202
1 Replies

7. Shell Programming and Scripting

can we use routines of datastage in unix script

Hi all, My aim is to get the log details of datastage job using unix scipt. we know that DSjob are used to get the log details from datastage universe through the adminstrator.can we call that DSjob rountine in our unix script. Thanks in advance Regards, NimmyRaju:) (0 Replies)
Discussion started by: nimmyraju
0 Replies

8. Programming

binary for 'printf' routines

This is a quick question: is '%b' a valid conversion to use in any of the 'printf' routines for binary data? I did some searching through old posts in this site and found some that said it is, though internet searching outside this site, as well as books I've looked at (both recent and not so... (1 Reply)
Discussion started by: cleopard
1 Replies

9. Programming

system calls vs librery routines

can i know what is the differnece between using librery function and system calls for performing any of the operation like read, write and other operations (1 Reply)
Discussion started by: MKSRaja
1 Replies

10. Programming

Problems calling external C routines from PL/SQL

Hi everybody! I'm not familiar with C programming in Unix, but I'm trying to make work an example to execute external procedures (developed in C) from PL/SQL. The example includes .c and .pc source files, which I have compiled succesfully. After that, links the .o files into .so to declare... (0 Replies)
Discussion started by: lwnorowski
0 Replies
Login or Register to Ask a Question