Description
I'm trying to configure FUN3D with CGNS and have the following error when I build:
ent_core -levent_pthreads -L/home/.../FUN3D/nvidia/x86_64/v100/lib -lfluda -L/usr/local/pkg/cuda/cuda-12.6/lib64 -lcudart -lstdc++ -lm -Wl,-rpath -Wl,/usr/local/pkg/openmpi/4.1.5_ucx1170/lib -Wl,-rpath -Wl,/usr/local/pkg/openmpi/4.1.5_ucx1170/lib
/usr/bin/ld: aflr3_to_cgns.o: in function 'MAIN__':
/home/.../FUN3D/fun3d_intg-14.1-6e82beb/build-v101/fun3d/utils/../../../fun3d/utils/aflr3_to_cgns.f90:352: undefined reference to `cg_open_f'
/usr/bin/ld: /home/.../FUN3D/fun3d_intg-14.1-6e82beb/build-v101/fun3d/utils/../../../fun3d/utils/aflr3_to_cgns.f90:361: undefined reference to `cg_base_write_f'
/usr/bin/ld: /home/.../FUN3D/fun3d_intg-14.1-6e82beb/build-v101/fun3d/utils/../../../fun3d/utils/aflr3_to_cgns.f90:371: undefined reference to `cg_zone_write_f'
collect2: error: ld returned 1 exit status
make[6]: *** [Makefile:1565: aflr3_to_cgns] Error 1
make[6]: Leaving directory '/home/.../FUN3D/fun3d_intg-14.1-6e82beb/_build-v101/fun3d/utils'
make[5]: *** [Makefile:1870: all-recursive] Error 1
make[5]: Leaving directory '/home/.../FUN3D/fun3d_intg-14.1-6e82beb/_build-v101/fun3d/utils'
make[4]: *** [Makefile:1423: all] Error 2
All I've dealt with previously is that I had changed some variables from UserDefined and NULL to CG_UserDefined and CG_NULL with the following command:
find . -type f -name "*.F90" -exec sed -i 's/\bUserDefined\b/CG_UserDefined/g; s/\bNULL\b/CG_NULL/g' {} +
I'm not sure which step to take next -- thank you.