Author Topic: FEAPpv Visual studio debug option  (Read 7949 times)

pchidamb

  • New Member
  • *
  • Posts: 2
FEAPpv Visual studio debug option
« on: June 18, 2014, 12:39:13 PM »
Hi
I received the following msg from FEAP admin...

"We have never figured out how to build a debug version with Visual Studio.
For debug, we always use Linux or Cygwin with GDB.
Sincerely,
FEAP Admin"
...
I am able to build debug version in Windows 7/64 bit m/c - 32 bit environment/ intel fortran 11.0.066.
I used the following option:
Fortran->Run-time-> Check array and string bounds->No
I tested the example file IEx1.dat and get the identical results of Release build.
FYI.
Regards
Praba


Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2648
Re: FEAPpv Visual studio debug option
« Reply #1 on: June 19, 2014, 07:26:09 AM »
Previous problems were internal compile errors, which must now be fixed?

pchidamb

  • New Member
  • *
  • Posts: 2
Re: FEAPpv Visual studio debug option
« Reply #2 on: June 24, 2014, 11:40:52 AM »
Taylor:
I got run-time error and hence I changed the flag in Fortran->Run-time option in visual studio IDE.
For completeness let me give my compile/ link options:
Compile option:
/nologo /debug:full /Od /I"<ROOTDIR>\Projects\FEAPpvLib\include"
/I"<ROOTDIR>\Projects\FEAPpvLib\include\integer4"
/module:"Debug\\" /object:"Debug\\" /traceback /libs:qwin /dbglibs /c

Linker option:
/OUT:"Debug\FEAPpvRLT.exe" /INCREMENTAL:NO
/NOLOGO /MANIFEST
/MANIFESTFILE:"<ROOTDIR>\Projects\FEAPpvRLT\debug\feappvrlt.exe.intermediate.manifest"
/DEBUG /PDB:"<ROOTDIR>\Projects\FEAPpvRLT\debug\feappvrlt.pdb"
/SUBSYSTEM:WINDOWS
/IMPLIB:"<ROOTDIR>\Projects\FEAPpvRLT\debug\feappvrlt.lib"

Regards
Praba

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2648
Re: FEAPpv Visual studio debug option
« Reply #3 on: June 24, 2014, 03:30:46 PM »
You probably need the integer8, however, when you use a debug option you need to set the flag in the compiler for no array bound checking.  That is probably what caused the run time error.  Manuals inform you about this -- see the feap installation manual.