Author Topic: Including User code  (Read 9198 times)

schaf218

  • New Member
  • *
  • Posts: 3
Including User code
« on: July 23, 2012, 11:11:59 AM »
Hello,

I admit this might be a stupid question.  I am currently trying to compile v8.3 with user mesh (umesh1) and element (elmt05).  Using Cygwin, all the libraries are constructed properly.  However, when the executable is being compiled I get the below error:

/home/philips/FEAP_PCS/ver83/Feap8_3.a(elmlib.o):elmlib.f:(.text+0x955): undefined reference to `_elmt05_'
/home/philips/FEAP_PCS/ver83/Feap8_3.a(umshlib.o):umshlib.f:(.text+0x59): undefined reference to `_umesh1_'

As far as I can tell from looking at my code and the above libraries, everything should work properly.  Any thoughts on what might be causing this error?

Thanks

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: Including User code
« Reply #1 on: July 23, 2012, 12:23:12 PM »
The error is telling you that elmt05 and umesh1 are not present during the linking step.

1) You should not remove the default elmt05.o or the default umesh1.o from the FEAP archive Feap8_3.a

2) In your makefile in the main directory you need to add these files to the OBJECTS and SOURCES:

OBJECTS = feap83.o path-to-your/elmt05.o path-to-your/umesh1.o

SOURCES = $(FSOURCE)feap83.$(FEXT) path-to-your/elmt05.f path-to-your/umesh1.f


(the path-to-your part can be omitted if your files in in $FEAPHOME8_3/main)