- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[bash]FC= ifort .SUFFIXES: .f90 .o OBJS= hola.o escribir.o FFLAGS= -openmp -O3 MKLINCLUDE=/opt/intel/composerxe-2011/include/ia32 MKLPATH=/opt/intel/composerxe-2011.0.084/mkl/lib/ia32/ hola: $(OBJS) $(FC) $(FFLAGS) -o hola $(OBJS) -L$(MKLPATH) -lmkl_lapack95 -Wl,--start-group $(MKLPATH)/libmkl_intel.a $(MKLPATH)/libmkl_intel_thread.a $(MKLPATH)/libmkl_core.a -Wl,--end-group -liomp5 -lpthread .f90.o: $(FC) $(FFLAGS) -c $< -I$(MKLINCLUDE) clean: rm hola $(OBJS) [/bash]
Note that I have removed linker options from the .f90.o rule.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your makefile already has lines for a ".f90 .o" rule, but those lines are prefixed by '#' in column-1. Simply removing the #s will take you to the next step.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
felipe@felipe-desktop:~/Escritorio/mis pruebas make$ make
make: *** No hay ninguna regla para construir el objetivo hola.o, necesario para hola. Alto.
felipe@felipe-desktop:~/Escritorio/mis pruebas make$ make hola
make: *** No hay ninguna regla para construir el objetivo hola.o, necesario para hola. Alto.
felipe@felipe-desktop:~/Escritorio/mis pruebas make$ make
make: *** No hay ninguna regla para construir el objetivo hola.o, necesario para hola. Alto.
felipe@felipe-desktop:~/Escritorio/mis pruebas make$ make hola
make: *** No hay ninguna regla para construir el objetivo hola.o, necesario para hola. Alto.
felipe@felipe-desktop:~/Escritorio/mis pruebas make$ make
make: *** No hay ninguna regla para construir el objetivo hola.o, necesario para hola. Alto.
felipe@felipe-desktop:~/Escritorio/mis pruebas make$ make todo
make: *** No hay ninguna regla para construir el objetivo hola.o, necesario para hola. Alto.
felipe@felipe-desktop:~/Escritorio/mis pruebas make$ make hola
make: *** No hay ninguna regla para construir el objetivo hola.o, necesario para hola. Alto.
felipe@felipe-desktop:~/Escritorio/mis pruebas make$ make compilar
ifort -openmp -O3 -c hola.f90 escribir.f90 -I/opt/intel/composerxe-2011/include/ia32 -L/opt/intel/composerxe-2011.0.084/mkl/lib/ia32 -lmkl_lapack95 -Wl,--start-group /opt/intel/composerxe-2011.0.084/mkl/lib/ia32/libmkl_intel.a /opt/intel/composerxe-2011.0.084/mkl/lib/ia32/libmkl_intel_thread.a /opt/intel/composerxe-2011.0.084/mkl/lib/ia32/libmkl_core.a -Wl,--end-group -liomp5 -lpthread
ifort: error #10104: unable to open '--end-group'
make: *** [compilar] Error 1
felipe@felipe-desktop:~/Escritorio/mis pruebas make$ make hola
ifort -openmp -O3 -o hola hola.o escribir.o -I/opt/intel/composerxe-2011/include/ia32 -L/opt/intel/composerxe-2011.0.084/mkl/lib/ia32 -lmkl_lapack95 -Wl,--start-group /opt/intel/composerxe-2011.0.084/mkl/lib/ia32/libmkl_intel.a /opt/intel/composerxe-2011.0.084/mkl/lib/ia32/libmkl_intel_thread.a /opt/intel/composerxe-2011.0.084/mkl/lib/ia32/libmkl_core.a -Wl,--end-group -liomp5 -lpthread
But, althoughthere areerrors,thefinalwork.Iwish I coulddoalonemake,andeverythingis built.I guessit'sasimple commandthat I have not.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[bash]FC= ifort .SUFFIXES: .f90 .o OBJS= hola.o escribir.o FFLAGS= -openmp -O3 MKLINCLUDE=/opt/intel/composerxe-2011/include/ia32 MKLPATH=/opt/intel/composerxe-2011.0.084/mkl/lib/ia32/ hola: $(OBJS) $(FC) $(FFLAGS) -o hola $(OBJS) -L$(MKLPATH) -lmkl_lapack95 -Wl,--start-group $(MKLPATH)/libmkl_intel.a $(MKLPATH)/libmkl_intel_thread.a $(MKLPATH)/libmkl_core.a -Wl,--end-group -liomp5 -lpthread .f90.o: $(FC) $(FFLAGS) -c $< -I$(MKLINCLUDE) clean: rm hola $(OBJS) [/bash]
Note that I have removed linker options from the .f90.o rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page