Re: compiling wrapit

From: Alexander Petkov <greenkov_at_nyahnyahspammersnyahnyah>
Date: Fri, 4 Jan 2008 10:02:10 -0700

On Jan 4, 2008 9:31 AM, Mary Haley <haley_at_ucar.edu> wrote:
>
>
> On Fri, 4 Jan 2008, Alexander Petkov wrote:
>
> > OK--I don't get multiple definition errors anymore :-)
> >
> > My second problem still persists, any idea as to what else I should be
> > linking to?
>
> I think your wrapit.c got clobbered again.
>
> It contains the definitions that are undefined below. Can you recopy
> the wrapit.c I gave you, and run "make" again? Don't do a "make
> clean" or anything like that, because I think one of the commands
> below is clobbering your wrapit.c, and that command probably won't be
> run again if you leave everything else alone.
>
> If the new wrapit.c works this time, then we need to figure
> out which command is clobbering it.
>
> Let me know if you get the above working, and then we can work offline
> to see what's happening to wrapit.c.
>
> --Mary

Hi Mary,

This time I compiled the wrapit.c you sent me by hand, after which
wrapit77 linked without a problem.
Something in the generated makefile overwrites wrapit.c, which in my
understanding should be a static source file.

This time I executed these commands by hand, to avoid using the Makefile:
gcc -ansi -fPIC -O -I../../.././include -I/usr/X11R6/include
-I/opt/netcdf-3.6.2/gnu/include -I/opt/hdf4/include -DLinux
-DMAJOR=2 -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped
-DNeedFuncProto -c -o wrapit.o wrapit.c
gcc -ansi -fPIC -O -o wrapit77 y.tab.o lex.yy.o Symbol.o wrapit.o
-L/opt/ncl_ncarg-5.0.0/lib -L/usr/X11R6/lib64
-L/opt/netcdf-3.6.2/gnu/lib -L/opt/hdf4/lib -lfl

Thanks again for your help,
Alex
Received on Fri Jan 04 2008 - 10:02:10 MST

This archive was generated by hypermail 2.2.0 : Mon Jan 07 2008 - 11:20:01 MST