ucns3d-team / UCNS3D

Unstructured Compressible Navier Stokes 3D code (UCNS3D)
https://ucns3d.com
GNU General Public License v3.0
244 stars 90 forks source link

ld: library not found for -lcrt0.o #11

Open airsound opened 4 years ago

airsound commented 4 years ago

When I compile the code in my MacOS laptop, I have the following error. Could the codes be compiled in MacOS? or I need to install some libs?

kim@KimdeMacBook-Pro CODE % make -f Makefile mpif90 -fdefault-real-8 -fdefault-double-8 -fbackslash -fopenmp -ffree-line-length-none -fcray-pointer -Ofast -Wno-lto-type-mismatch -static -I /usr/local/opt/openblas/include/ -o ucns3d_p declarations.o translate.o grid_t.o flow_operations.o memory.o io.o mpi_p.o communications.o riemann.o flux_p.o profile.o init_p.o parts.o bc_p.o matrix.o grid_p.o basis.o gradients.o prestore.o reconstruct_p.o source.o implicit_fluxes.o implicit_time.o flux_pv.o time_p.o der_r.o svd.o local_pt.o main.o libparmetis.a libmetis.a libtecio.a -L/usr/local/opt/openblas/lib -lopenblas -lstdc++ ld: library not found for -lcrt0.o collect2: 错误:ld 返回 1 make: *** [ucns3d_p] Error 1

TakisCFD commented 4 years ago

The tecio library needs to be compiled from source for your system and then use that libtecio.a