Hi idelovski, thanks for writing,
SInce it is kind of difficult to send the code or part of it, I can surely send the makefile:
Code:
CC = gcc #Compiler is gcc
LD = gcc -lm #Linker is gcc also
CFALGS = -Wall -shared
CDEBUG = -g
#CBLAS = -lgsl -lgslcblas
# Linker flags go here. Currently there aren't any, but if we'll switch to
# code optimization, we might add "-s" here to strip debug info and symbols.
LDFLAGS =
# List of source codes and generated object files:
SRCS = main.c nrutil.c visit_writer.c load_input.c PRINT.c linspace.c nrspline.c define_boundary.c parabola.c gaussj.c interpol_spline.c arco.c TFI.c GRID2CONN.c wrt2plotfile.c external_geometries.c
OBJS = main.o nrutil.o visit_writer.o load_input.o PRINT.o linspace.o nrspline.o define_boundary.o parabola.o gaussj.o interpol_spline.o arco.o TFI.o GRID2CONN.o wrt2plotfile.o external_geometries.o
# ProgRam executable file name:
EXE = mymeshGen2D_struct.a
# Top-level rule, to compile everything
all: $(EXE)
# Rule to Link the program
$(EXE): $(OBJS)
$(LD) -L/usr/local/lib $(OBJS) $(GSLLIB) $(CBLAS) -o $(EXE)
# Rule for all files:
$(OBJS): $(SRCS)
$(CC) $(CFLAGS) $(CDEBUG) -I/usr/include -c $(SRCS)
I will be re-checking the arguments and declarations again.
Thank you