Quantcast
Channel: Intel® Fortran Composer XE
Viewing all articles
Browse latest Browse all 1424

String Length Argument and arrays

$
0
0

This may sound a bit complex, but here is my problem.  I am in the process of building a project that needs to use netcdf.  I'm using an older build (3.6.3), which, when I build it with Fortran bindings requires the compiler switch '/iface:mixed_str_len_arg' to work correctly.  I'm building them into static libraries so I can then include these in another project where I build a fortran DLL that.  I then call this new DLL from a C# program.  Passed variables all work now, except for arrays.  They get passed into the C# program at the correct length, but the elements in the array are all 'Undefined address'.  If I leave off the '/iface:mixed_str_len_arg' compiler switch, the NETCDF libraries won't work, and the string then get clobbered in the pass.  And none of these problems existed until I added in these NETCDF libraries...without them everything works fine - except I need them for my project.  Any thoughts?  Am I going about this totally backwards?  I am using Visual Fortran Composer XE 2011 with Visual Studio 2010.


Viewing all articles
Browse latest Browse all 1424

Trending Articles