Hi,everyone.
I am sorry to bother anyone here.I meet the annoying error again which I met a couple of days ago. I can't find what's wrong, so I hope someone can help me out. This is when I use OTPS for tide simulation.
g95 -fno-second-underscore -fleading-underscore -L/usr/local/lib -lnetcdf -I/usr/local/include -o extract_HC extract_HC.f subs.f
/cygdrive/d/DOCUME~1/Sun/LOCALS~1/Temp/cc5QFR52.o:extract_HC.f:(.data+0x328): undefined reference to `_nf__create_mp_'
/cygdrive/d/DOCUME~1/Sun/LOCALS~1/Temp/cc5QFR52.o:extract_HC.f:(.data+0x32c): undefined reference to `_nf__create_'
I have checked my libnetcdf.a
$ nm libnetcdf.a | grep nf__create_mp
000005a0 T _nf__create_mp_
U _nf__create_mp_
I am so puzzled about this.
Would someone give me some indication?
Thanks in advance .
annoying error about ntcdf
Re: annoying error about ntcdf
Put the -lnetcdf at the end of that command. The order matters.bibi951 wrote: g95 -fno-second-underscore -fleading-underscore -L/usr/local/lib -lnetcdf -I/usr/local/include -o extract_HC extract_HC.f subs.f
Re: annoying error about ntcdf
Thank you,Kate.
I really appreciate your guide.Thank you.
I really appreciate your guide.Thank you.