Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page

Top Document: Motif FAQ (Part 9 of 9)
Previous Document: 320) Can a Motif application create windows on mutiple screens (on a
Next Document: 322) Why do I get link errors about "XShape" symbols?


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

321) Why do I get "Error: attempt to add non-widget child "dsm" to


parent"?
[Last modified: May 95]

Answer: Most likely, you are linking your libraries in the wrong order.  You
must link -lXm *before* -lXt.

Ken Lee

Ken Sall (ksall@cen.com) adds: This same error occurs if you combine Motif and
Athena widgets in the same application. If you link with "-lXaw" before "-
lXm", you get the runtime error. However, if you switch the order of the two
libraries, there is no problem. For example:

cc mothena.c -o mothena -lXm -lXaw -lXt -lXmu -lX11




Top Document: Motif FAQ (Part 9 of 9)
Previous Document: 320) Can a Motif application create windows on mutiple screens (on a
Next Document: 322) Why do I get link errors about "XShape" symbols?

Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
kenton@rahul.net (Ken Lee)

Last Update May 13 2007 @ 00:23 AM