Thank you for your response. actually I am trying to use and optimize a package entitled “JAC” in windows 10 which developed in ubuntu. when I build “JAC” it calls “make” command to run a bunch of Fortran codes in the first place. there is a “Makefile” like this:
Assign some variables ONLY if they are not yet defined
FCP ?= gfortran
FFL ?= -c -O3 -mtune=native -march=native
BINDIR ?= …/bin
jac_anco.so : jac_anco.o
gfortran -O3 -shared -fPIC -o @ jac_anco.f90 rabs_anco.f90 rabs_angular.f90 rabs_constant.f90 rabs_csl.f90 \
rabs_determinant.f90 rabs_dirac_orbital.f90 rabs_file_handling.f90 rabs_functions_math.f90 \
rabs_functions_string.f90 rabs_grasp92.f90 rabs_io_dialog.f90 rabs_mcp_adaptation.f90 rabs_mcp_grasp92.f \
rabs_mcp_mct.f90 rabs_naglib.f90 rabs_njgraf.f rabs_nucleus.f90 rabs_rcfp.f90 rabs_recoupling.f90 -o (BINDIR)/libanco-ratip2013.so
.PHONY: clean
clean :
(RM) (XEXE) *.o *.mod
%.o : %.f90
(FCP) (FFL) $<
jac_anco.o : rabs_anco.o rabs_mcp_mct.o
rabs_anco.o : rabs_angular.o rabs_constant.o rabs_csl.o rabs_file_handling.o rabs_rcfp.o
rabs_recoupling.o
rabs_angular.o : rabs_constant.o rabs_dirac_orbital.o rabs_functions_math.o rabs_io_dialog.o rabs_naglib.o
rabs_constant.o :
rabs_csl.o : rabs_constant.o rabs_determinant.o rabs_dirac_orbital.o rabs_functions_string.o
rabs_determinant.o : rabs_constant.o rabs_dirac_orbital.o
rabs_dirac_orbital.o : rabs_constant.o rabs_functions_math.o rabs_naglib.o rabs_nucleus.o
rabs_file_handling.o : rabs_constant.o rabs_csl.o rabs_grasp92.o rabs_io_dialog.o rabs_nucleus.o
rabs_functions_math.o : rabs_constant.o rabs_naglib.o
rabs_functions_string.o : rabs_constant.o
rabs_grasp92.o : rabs_constant.o rabs_dirac_orbital.o rabs_functions_math.o rabs_nucleus.o
rabs_io_dialog.o : rabs_constant.o rabs_functions_math.o rabs_functions_string.o rabs_nucleus.o
rabs_mcp_adaptation.o : rabs_angular.o rabs_constant.o rabs_dirac_orbital.o rabs_mcp_mct.o
rabs_mcp_grasp92.o : rabs_mcp_adaptation.o rabs_njgraf.o
rabs_mcp_mct.o : rabs_angular.o rabs_constant.o rabs_csl.o
rabs_naglib.o : rabs_constant.o
rabs_njgraf.o :
rabs_nucleus.o : rabs_constant.o
rabs_rcfp.o : rabs_angular.o rabs_constant.o rabs_functions_string.o
rabs_recoupling.o : rabs_angular.o rabs_constant.o rabs_csl.o rabs_rcfp.o
As you gave me a clue about “.dll” and “.so”, I tried to change the “.so” format into “.dll” format and run “make” command again, so it makes “libanco-ratip2013.dll” instead of “libanco-ratip2013.so” and now I have another error like this:
ERROR: InitError: could not load library “C:\Users\Mehran.juliapro\JuliaPro_v1.3.1-1\packages\JAC\ztL1S\src..\deps\bin\libanco-ratip2013.dll”
%1 is not a valid Win32 application.
Stacktrace:
[1] #dlopen#3(::Bool, ::typeof(Libdl.dlopen), ::String, ::UInt32) at C:\Users\julia\AppData\Local\Julia-1.3.1\share\julia\stdlib\v1.3\Libdl\src\Libdl.jl:109
[2] dlopen at C:\Users\julia\AppData\Local\Julia-1.3.1\share\julia\stdlib\v1.3\Libdl\src\Libdl.jl:109 [inlined] (repeats 2 times)
[3] init() at C:\Users\Mehran.juliapro\JuliaPro_v1.3.1-1\packages\JAC\ztL1S\src\module-AngularCoefficients-Ratip2013.jl:190
[4] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:692
[5] _require_from_serialized(::String) at .\loading.jl:743
[6] _require(::Base.PkgId) at .\loading.jl:1034
[7] require(::Base.PkgId) at .\loading.jl:922
[8] require(::Module, ::Symbol) at .\loading.jl:917
during initialization of module AngularCoefficientsRatip2013
so do I need to make other changes in “Makefile” ? I think “.o” format is an issue here because it is a well known object file in Linux in this case, what do you think? should I change “.o” format to “.obj” in “Makefile” file?