Answer Question
Visual fortran + visual studio 2017 not working
I installed Community edition of Visual Studio 2017 and remove and again install the Intel Fortran. This time the installation was without any warning and I checked the button in integration. The installation was successful. But when running C_Interface_VF example I got these errors (see attached file). It looks windows SDK libraries are not linked. I am using windows SDK 10. Could you help me?
Petr
Type | Id | Component | Namespace | Description |
---|---|---|---|---|
805945339 | C_Interface_VF | C_Interface_VF | Generating network and source code 'C:\PSCAD\CInterface\C_Interface_VF.if15\Station.f'. | |
78442364 | Main | C_Interface_VF | Generating network and source code 'C:\PSCAD\CInterface\C_Interface_VF.if15\Main.f'. | |
C_Interface_VF | Generating 'C:\PSCAD\CInterface\C_Interface_VF.if15\C_Interface_VF.map'. | |||
C_Interface_VF | The total number of live nodes: 1 | |||
C_Interface_VF | Time for Compile: 78ms Make: 0ms | |||
C_Interface_VF | Will execute (1): call C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.3.210\windows\bin\ifortvars.bat intel64 | |||
C_Interface_VF | Will execute (1): call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.3.210\windows\bin\ifortvars.bat " intel64 | |||
C_Interface_VF | Will execute (2): nmake -f C_Interface_VF.mak | |||
C_Interface_VF | Will execute (2): "C:\PSCAD\CInterface\C_Interface_VF.if15\C_Interface_VF.mak.bat" | |||
C_Interface_VF | Creating EMTDC executable... | |||
C_Interface_VF | C:\PSCAD\CInterface\C_Interface_VF.if15>call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.3.210\windows\bin\ifortvars.bat " intel64 | |||
C_Interface_VF | The system cannot find the path specified. | |||
C_Interface_VF | Intel(R) MPI Library 2018 Update 3 for Windows* Target Build Environment for Intel(R) 64 applications | |||
C_Interface_VF | Copyright 2007-2018 Intel Corporation. | |||
C_Interface_VF | Copyright (C) 1985-2018 Intel Corporation. All rights reserved. | |||
C_Interface_VF | Intel(R) Compiler 18.0 Update 3 (package 210) | |||
C_Interface_VF | ||||
C_Interface_VF | ********************************************************************** | |||
C_Interface_VF | ** Visual Studio 2017 Developer Command Prompt v15.7.3 | |||
C_Interface_VF | ** Copyright (c) 2017 Microsoft Corporation | |||
C_Interface_VF | ********************************************************************** | |||
C_Interface_VF | [vcvarsall.bat] Environment initialized for: 'x64' | |||
C_Interface_VF | Microsoft (R) Program Maintenance Utility Version 14.14.26430.0 | |||
C_Interface_VF | Copyright (C) Microsoft Corporation. All rights reserved. | |||
C_Interface_VF | Compiling 'Station.f' into object code. | |||
C_Interface_VF | Compiling 'Main.f' into object code. | |||
C_Interface_VF | Compiling '"C:\PSCAD\CInterface\CI_VF.f"' into object code. | |||
C_Interface_VF | 1 file(s) copied. | |||
C_Interface_VF | ifort.exe /nologo /c /free /real_size:64 /fpconstant /warn:declarations /iface:default /align:dcommons /fpe:0 /include:"C:\PROGRA~2\PSCAD46\emtdc\if15\inc" /include:"C:\PROGRA~2\PSCAD46\emtdc\if15" /include:"C:\PROGRA~2\PSCAD46\emtdc\if15\windows" /O1 "CI_VF.f" | |||
C_Interface_VF | del "CI_VF.f" | |||
C_Interface_VF | Compiling '"C:\PSCAD\CInterface\CI_MC.c"' into object code. | |||
C_Interface_VF | 1 file(s) copied. | |||
C_Interface_VF | cl.exe /nologo /MT /W3 /EHsc /c /O2 "CI_MC.c" | |||
C_Interface_VF | CI_MC.c | |||
C_Interface_VF | del "CI_MC.c" | |||
C_Interface_VF | Linking objects and libraries into binary 'C_Interface_VF.exe' | |||
C_Interface_VF | main.obj : error LNK2019: unresolved external symbol __iob_func referenced in function "void __cdecl setTheLocale(int,char * * const)" (?setTheLocale@@YAXHQEAPEAD@Z) | |||
C_Interface_VF | emtdc.lib(exchange.obj) : error LNK2001: unresolved external symbol __iob_func | |||
C_Interface_VF | emtdc.lib(datetime.obj) : error LNK2001: unresolved external symbol __iob_func | |||
C_Interface_VF | emtdc.lib(exchange.obj) : error LNK2019: unresolved external symbol sprintf referenced in function "private: void __cdecl AsyncSocket::throwError(char const *)const " (?throwError@AsyncSocket@@AEBAXPEBD@Z) | |||
C_Interface_VF | emtdc.lib(datetime.obj) : error LNK2001: unresolved external symbol sprintf | |||
C_Interface_VF | emtdc.lib(cfortran.obj) : error LNK2001: unresolved external symbol sprintf | |||
C_Interface_VF | emtdc.lib(exchange.obj) : error LNK2019: unresolved external symbol wprintf referenced in function "public: bool __cdecl Exchange::Connect(char const *,int)" (?Connect@Exchange@@QEAA_NPEBDH@Z) | |||
C_Interface_VF | emtdc.lib(datetime.obj) : error LNK2019: unresolved external symbol sscanf referenced in function "__int64 __cdecl get_build_time_t(void)" (?get_build_time_t@@YA_JXZ) | |||
C_Interface_VF | emtdc.lib(outxmsg.obj) : error LNK2001: unresolved external symbol sscanf | |||
C_Interface_VF | C_Interface_VF.exe : fatal error LNK1120: 4 unresolved externals | |||
C_Interface_VF | NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\link.exe"' : return code '0x460' | |||
C_Interface_VF | Stop. | |||
C_Interface_VF | Unable to generate a simulation executable for namespace 'C_Interface_VF' | |||
C_Interface_VF | ======== Build: 14 errors, 0 warnings ======== |