Author Topic: Project build errors  (Read 10344 times)

truparel

  • Jr. Member
  • **
  • Posts: 12
Project build errors
« on: November 22, 2012, 11:35:28 AM »
Hello,

I recently downloaded the FEAPpv so as to implement some new formulations in FEA.  My plan is to use the standard FEAPpv program as a skeleton and build upon it subroutines to help implement my formulations.

I am using Fortran Intel compiler w/ visual studio 2008.

I realize that the installation instructions on the FEAPpv webpage aim towards building the main program, but I would like to use the Debug mode rather than Release mode.

I created a new fortran project, added required sub-routines (Elements, Plot, Program,User, and Windows) in respective folders under "Source Files". I also included required header files under Project>Properties>Fortran>General>Additional include directories. Finally I added the main program feappv.f to "Source Files"

Next when I build the project "solution configuration - Debug", after compiling all files I get the following error:
> Error   1    error LNK2019: unresolved external symbol _waitonmouseeventqq referenced in function _DOSGIN   dosgin.obj   
 
In the above: dosgin is a subroutine that uses a function waitonmouseevent
In addition to this i have 25 other errors for unresolved external symbol

Any idea what this is and how to fix it?

Thanks!!

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2648
Re: Project build errors
« Reply #1 on: November 24, 2012, 07:29:41 AM »
The missing files are probably from the library for the compiler -- and should be loaded by the "use" record in the graphics files.  What type of project are you building?  Also be sure to set the 'ignore array bounds' under options in the compiler as feappv works with pointers that probably are out of bounds in the main array dimensions (this is intended and not an error).  If you just want a working version of the program without graphics you can create a
dummy program for pplotf.f and then not load the graphics related files (i.e., plot directory and some from windows).

truparel

  • Jr. Member
  • **
  • Posts: 12
Re: Project build errors
« Reply #2 on: November 27, 2012, 03:53:10 PM »
Dear Prof. Taylor,

Thank you for your reply.

I selected the 'QuickWin Application' project this time and now I am able to build the program + run it in debug mode (no more unresolved external symbol errors).

However I encountered another issue. After I enter the input file name (for the Test Problem input file for FEAPpv) I get the following Visual Fortran run-time error -

forrtl: severe(408): fort: (4): Variable XXX has substring ending point 16
which is greater than the variable length of 15
Stack trace terminated abnormally.


When I build the FEAPpv executable (using instructions from FEAPpv webpage) and run the same input file, everything works fine and I am able to visualize the results. 

I'd appreciate if you could help.

Thanks!
« Last Edit: November 27, 2012, 10:15:23 PM by truparel »

truparel

  • Jr. Member
  • **
  • Posts: 12
Re: Project build errors
« Reply #3 on: November 29, 2012, 02:24:07 PM »
Resolved!

     forrtl: severe(408): fort: (4): Variable XXX has substring ending point 16
     which is greater than the variable length of 15
     Stack trace terminated abnormally.

Error was fixed by setting the "Check array and string bounds" to NO
    Project>Properties>Fortran>Run-Time>Check array and string bounds