![intel visual fortran multiprocessor compilation intel visual fortran multiprocessor compilation](https://www.intel.com/content/dam/develop/external/us/en/images/debug-options-compatibility-mode-0-776685.png)
- #INTEL VISUAL FORTRAN MULTIPROCESSOR COMPILATION TRIAL#
- #INTEL VISUAL FORTRAN MULTIPROCESSOR COMPILATION WINDOWS#
Basically, I created a mask into a separate PGI project that calls the main program as a subroutine I managed to solve my problem and now the interface works. Source.exe : fatal error LNK1120: 2 unresolved externals Lib.obj : error LNK2001: unresolved external symbol f90_compiled Lib.obj : error LNK2001: unresolved external symbol ISO_C_BINDING
#INTEL VISUAL FORTRAN MULTIPROCESSOR COMPILATION WINDOWS#
PGC/x86-64 Windows 17.9-0: compilation completed with warnings PGC-W-0156-Type not specified, ‘int’ assumed (Source.c: 7)
![intel visual fortran multiprocessor compilation intel visual fortran multiprocessor compilation](https://image.slidesharecdn.com/4d61aaa0-e898-4621-8595-b23eca3b8e50-161123154425/95/multiprocessor-computing-with-openmp-1-638.jpg)
I also tried to compile and link the files using the PGI command windows and the pgcc compiler. No error occurs if I compile the static library using ifort, so I imagine that the problem is the linking between the library compiled using PGI fortran and the main program. SeverityĜodeĝescription Projectğile Line Suppression StateĮrror LNK2001 unresolved external symbol ISO_C_BINDINGĜonsoleApplication1Ĝ:\Users\rt058861\Documents\Work\Tutorial_C++\tutorial13\ConsoleApplication1\ConsoleApplication1\PVFProject1.lib(Lib.obj)đĮrror LNK2001 unresolved external symbol _pgdbg_stubĜonsoleApplication1Ĝ:\Users\rt058861\Documents\Work\Tutorial_C++\tutorial13\ConsoleApplication1\ConsoleApplication1\PVFProject1.lib(Lib.obj)đĮrror LNK2001 unresolved external symbol f90_compiledĜonsoleApplication1Ĝ:\Users\rt058861\Documents\Work\Tutorial_C++\tutorial13\ConsoleApplication1\ConsoleApplication1\PVFProject1.lib(Lib.obj)đĮrror LNK1120ē unresolved externalsĜonsoleApplication1Ĝ:\Users\rt058861\Documents\Work\Tutorial_C++\tutorial13\ConsoleApplication1\圆4\Debug\ConsoleApplication1.exeđ When I try to compile the overall solution I get the following errors: Then, I compiled the static library and I linked it to the main project. Hy =sqrt c1 2 + c22 ! No, I didn’t forget the parenthesis, but if I put them after sqrt it doesn’t let me upload the post on this forum for some obscure reason. Real(c_float), value, intent(in) :: c1, c2 Use, intrinsic :: iso_c_binding, only : c_float Subroutine pythagoras (c1, c2, hy ) bind© Printf(“Hypotenuse if sides 30, 40 is: %f\n”, c) Īnd a static library using PGI Visual Fortran containing the file: Void pythagoras(float a, float b, float *c)
![intel visual fortran multiprocessor compilation intel visual fortran multiprocessor compilation](https://docplayer.net/docs-images/41/2223990/images/page_3.jpg)
#INTEL VISUAL FORTRAN MULTIPROCESSOR COMPILATION TRIAL#
In particular, I created a trial solution in Visual studio containing two projects: a Win32 Console containing the file: I started following the approach that you suggested.