Linking C/C++ and Fortran, unresolved external symbols
I am trying to compile use a Fortran static library file with a C++ program but am getting unresolved external errorsI build the static library file using x64 subroutine bar_ftn ( len_input_file,...
View Articlefatal error LNK1104 linking MS C++ with Fortran
I have two files source1.f90 and main.cpp the Fortran file has a subroutine and the cpp file has a program that calls the fortran subroutineI compiled the fortran file and the built a static library...
View ArticleStructure constructor with pointer component silliness
The compiler complains that the component spec in the structure constructor is not of the same type and kind as the component. But it is... isn't it? MODULE m IMPLICIT NONE TYPE, PUBLIC :: NodeRef...
View ArticleBehavior of function-returned array pointers of dynamic size
I'm trying to use array pointers as an output from a function. The pointer target is a function variable whose size is not fixed. I've noticed that when using these returned pointers in other parts of...
View ArticleTraceback line numbers do not match source line numbers
Hi,I have an example where lines reported in the traceback on an error do not match source line numbers. The same mismatch exists between gdb line numbers and the source file. The mismatch starts...
View ArticleFORTRAN CUDA basics
Hi, I am interested in developing a FORTRAN code with CUDA routines. I can get few sample programs but i dont knw how to compile the cuda based fortran code in Intel fortran compiler. How can i compile...
View ArticleOpenMPI 1.10.0 built with Intel Parallel Studio XE 2016
Hello,I have built Open MPI 1.10.0 using Intel compilers 16.0.0. When I am trying to compile the following test code: program testmpi use mpi implicit none integer :: pid integer :: ierr integer ::...
View ArticleLINKING ERROR (error LNK2019) during VC++ project Build with Fortran...
Hi. I have and issue building the C++ DLL and Intel Visual Fortran. The C++ project code has reference to a subroutine defined in Fortran file (*.for) for certain mathematical analysis and...
View ArticleTrouble compiling x64 version of code with OpenMP library
My attempt to compile an x64 version of an inherited code that contains OpenMP directives, contains a "USE OMP_LIB" statement, and links to routines in the MKL library keeps grabbing the 32-bit version...
View ArticleFORTRAN IO OPERATION
Hi all I am using the following code to create a new file PROGRAM TEST_IO INTEGER*4 UNIT,IOS OPEN (UNIT=119, FILE = '$HOME/compile.log', IOSTAT = IOS, - STATUS = 'NEW', RECL = 132, FORM = 'FORMATTED',...
View ArticleHow to compile and run a parrallel program using intel visiual fortan...
I'm good at programming using FORTRAN language, but I'm a new bird using intel visiual fortan compiler for windows. Can you tell me how to compile and run a parrallel program (ie. test.f or test.f90 in...
View ArticleDoes fortran OOP decrease efficiency?
I'm maintaining some simulation code with intel fortran 2015. Now I want to add some OOP characteristic like inherent, polymorphism, allocatable scalar, etc. to make the project more manageable. My...
View ArticleBogus error with PROTECTED attribute
Hello,there is a strange problem when the PROTECTED attribute is used before the actual variable declaration.Example:module ifc_protected implicit none private public :: x !---------- protected :: x !...
View ArticleDialog box closes prematurely
Still trying to learn all about dialog boxes, as supported by IVF (not API). My project has a list box, an edit box, and the usual OK and Cancel buttons. When the user is working in the list or edit...
View ArticleICE with an extended parameterized derived type (PDT)
module m use, intrinsic :: iso_fortran_env, only : i4 => int32, i8 => int64 implicit none type :: base_t(k,n,m) integer, kind :: k = i4 integer, len :: n = 1 integer, len :: m = 1 end type base_t...
View ArticlePROTECTED attribute
Hi, I believe there is an error in the latest Fortran Compiler, please see the short program below: MODULE TEST_PROTECTED_MODULE IMPLICIT NONE INTEGER :: A = 10 PRIVATE...
View Articlenew laptop, windows 10...
new laptop, windows 10no vsinstalled sdk 8.1 as directed; get following. help please. thanks. Intel(R) Parallel Studio XE 2016 Composer Edition for Fortran Windows* Setup Wizard ended prematurely...
View ArticleProblem installing Parallel Studio XE 2016
Installation stops at "splash screen" without any error message.Any hint for troubleshooting?
View Article64bit Fortran DLL works when called from VBA but not from VB.NET
Hi !I want to port my 32bit VB-Fortran code to the 64bit platform, consisting in calling a fortran DLL both from VBA (ie: Excel) and VB.NET. In the attached pieces of code, everything runs fine in...
View Articlelinking failure with c++ libraries
I'm trying to add some new functions from a c++ library to one of my existing fortran projects. The library compiles and builds fine, but when I go to link I get errors that I don't understand where...
View Article