Author Topic: Use Feap8_4.a to create executable  (Read 5881 times)

TUDoR

  • Jr. Member
  • **
  • Posts: 17
Use Feap8_4.a to create executable
« on: July 14, 2014, 06:16:33 AM »
Dear FEAP users,

is there any possibilty to use the file 'Feap8_4.a' in order to generate a running
executable while having a link to new user subroutines? If it works, could anyone
please tell me how to do this on a linux/unix machine?

The idea is to give the archive file to a coworker and he just links his own user
subroutines to the archive and generates an executable from that.

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: Use Feap8_4.a to create executable
« Reply #1 on: July 14, 2014, 06:52:23 AM »
Yes, if you look at the makefile in the directory /main you will see how we link feap84.f to the archive which is referenced by ARFEAP from the makefile.in in the /ver84 directory

TUDoR

  • Jr. Member
  • **
  • Posts: 17
Re: Use Feap8_4.a to create executable
« Reply #2 on: July 14, 2014, 11:32:56 AM »
Dear Prof. Taylor,

thank you for the hint. It works. Now I'm able to create an executable from the archive file.
The only thing that does not work is to link user routines from a subfolder.

For instance, I'd like to add the code from ./user/elmt40.f to that executable. I added the
source elmt40.f and the object elmt40.o to the makefile but still only the dummy-routines
are called. There must be some pitfall I'm not aware of. By chance you could give one more hint
to overcome that problem.

kind regards!

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: Use Feap8_4.a to create executable
« Reply #3 on: July 14, 2014, 12:54:02 PM »
You will need to give an explicit path to where the files are located, but it should work.

TUDoR

  • Jr. Member
  • **
  • Posts: 17
Re: Use Feap8_4.a to create executable
« Reply #4 on: July 15, 2014, 04:49:21 AM »
That was my mistake. I did not use an explicit path.

Thank you very much!