I am migrating a module from Solaris to RHEL 7.9 which uses X motif for building the UI.
After the migration, the call to - XtIsSubclass(w, xmComboBoxWidgetClass) is failing
where w is the Combo box widget.
the call is available through a macro in /usr/include/Xm/ComboBox.h
#define XmIsComboBox(w) XtIsSubclass(w, xmComboBoxWidgetClass)
xmComboBoxWidgetClass is declared in the same file above the macro.
I was able to see the string "xmComboBoxWidgetClass" in /usr/lib/libXm.so.4.0.4
/usr/lib> strings libXm.so.4.0.4 | grep -w "xmComboBoxWidgetClass" xmComboBoxWidgetClass
I have no clue, why the comparison is failing. Any pointer to a possible solution would be very helpful
The following example was compiled and run to exercise the library call.
Here is a sample code:
Here is the makefile
Running the above...