Author Topic: Compiling issue  (Read 11264 times)

schaf218

  • New Member
  • *
  • Posts: 3
Compiling issue
« on: July 18, 2012, 12:12:35 PM »
Hey all,

I was attempting to compile the static library for FEAPpv version 3.1 in Visual Studio 2010 when one of the files gave me an error.  The file was setmem.f and the error was "error #6362: The data types of the argument(s) are invalid.   [FREE]" in lines 147 and 201.  I am wondering if anyone else has had the same/similar issue or knows what might be causing it.  It is one of the files in the program directory, so it seems odd that there would be an error in the code.   

An thoughts, insights, or fixes would be much apprecaited.

Thanks

schaf218

  • New Member
  • *
  • Posts: 3
Re: Compiling issue
« Reply #1 on: July 18, 2012, 01:35:16 PM »
With some further investigation:

The line of code is the same for both lines where it failed.
         
     call free(adr(n))

There are no subroutines in setmem.f so I don't think the use of the call command is correct, but I am a beginner/intermediate level fortran programmer.

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Compiling issue
« Reply #2 on: July 18, 2012, 02:11:53 PM »
The problem you have is likely due to a configuration/compilation issue.

Try using include/integer4 and compiling with a 32bit target.

Note that in Windows, one has to be careful since the OS and the compiler come in a crippled configuration unless you specifically pay for the professional versions.  There are options on the OS for 64 and 32 bit mode and likewise on the compiler.  Everything has to match to get a successful build.  The 32bit target should, however, always be available and this is to be built with include/integer4 and not include/integer8.

Your other option is to try installing Cygwin and the GCC compilers.