[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20010430: Nsharp update for GEMPAK 5.6.C.1



Robert,

The NxmPrt.c routine in nsharp is the same as is found in 
$GEMPAK/source/nxmlib, with the exception that the device callbacks
are commented out with the #ifndef NSHARP tags. -DNSHARP is
given on the cc line you show below.

So, you should have the same problem compiling in nxmlib
if the $GEMLIB/nxmlib.a file were to be removed.

The xmPushButtonWidgeClass and the other Xm routines
are defined in the /usr/dt/include/Xm directory.
I see you have the -I/usr/dt/include include directive, so
the Motif headers should be found.

We can check where the includes should be picked up.

NxmPrt.c includes: #include "Nxmlib.h"

Nxmlib.h shhould be found in the -I$GEMPAK/source/nxmlib location.

The Nxmlib.h routine includes: #include "geminc.h"

and $GEMPAK/include/geminc.h gets: #include <Xm/XmAll.h>

The /usr/dt/include/Xm/XmAll.h has: #include <Xm/PushB.h>

and that should get you the definition for the pushbutton widget.

See if you have any problems with your /usr/dt/include/Xm directory.
Possibly try running the cc command by hand in the nsharp/source
directory to see if anything is being confused in the Makeinc.x86
config file (such as an extra space or control chartacter in
the definition lines in characters following the definitions in the file).

Steve Chiswell
Unidata User Support





On Tue, 1 May 2001, Robert Mullenax wrote:

> On Tue, 1 May 2001, Steve Chiswell wrote:
> Steve,
> 
> I am using /opt/SUNWspro/bin/cc. This is the SC5.0 compiler.
> I took off the -O and -xtarget=native and got the same result.
> 
> Thanks,
> Robert
> > 
> > 
> > 
> > Robert,
> > > cc -DUNDERSCORE -DX86 -I/export/home/gempak/GEMPAK_5.6/gempak/include -O
> > > -xtarget=native -I/export/home/gempak/GEMPAK_5.6/include 
> > > -I/usr/openwin/include -I/usr/dt/include -I. -c
> > > -I/export/home/gempak/GEMPAK_5.6/gempak/source/nxmlib -DNSHARP NxmPrt.c
> > 
> > 
> > Check what C compiler you are using make sure you are using the ansi C 
> > compiler.
> > 
> > Steve Chiswell
> > Unidata User Support
> > 
> > 
> > 
> > On Tue, 1 May 2001, Robert Mullenax wrote:
> > 
> > > Steve,
> > > 
> > > I tried to build nshap on our Solaris x86 box and it failed
> > > with a bunch of messages like this:
> > > 
> > > NxmPrt.c", line 922: undefined symbol: xmPushButtonWidgetClass
> > > 
> > > I have uploaded the output of the build with a file
> > > called nsharp.out in the ~gbuddy/incoming directory
> > > on your server.
> > > 
> > > Thanks,
> > > Robert
> > > 
> > > 
> > > 
> > 
> > 
> > 
> 
>