Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29435 Diskussionen

Problem adding Version/icon to Fortran project

lklawrie1
Einsteiger
978Aufrufe
In the release version of my program, I use a Version resource and add an icon for the exe of the program.
When I have tried to do this in IVF, I get a bunch of "unresolved externals" at the end of the build. I made a very simple version of this in CVF and imported it into IVF. That works fine (though the project saved is a C++ project rather than Fortran). When I tried to add just the simple version files to a IVF project, I get the same (or similar) missing external references.
Can I do what I want to and how to do it?
Linda
0 Kudos
6 Antworten
Jugoslav_Dujic
Geschätzter Beitragender II
978Aufrufe
Which unresolved externals?
Having a resource script within the executable -- as far asI know -- cannot possiblybe a cause of"unresolved external" errors. Something else is probably going on, but you have to show us at least a few linker errors.
Jugoslav
lklawrie1
Einsteiger
978Aufrufe
Here is my most recent "external" list.
/OUT:"Release/EnergyPlus.exe" /INCREMENTAL:NO /NOLOGO /SUBSYSTEM:CONSOLE /OPT:NOWIN98 Release/DisplayRoutines.obj Release/DateTime.obj Release/DataHeatBalFanSys.obj Release/DataErrorTracking.obj Release/DataGlobals.obj Release/DataDElight.obj Release/DataMoistureBalance.obj Release/DataVectorTypes.obj Release/DataConversions.obj Release/DataMoistureBalanceEMPD.obj Release/DataConvergParams.obj Release/DataHeatBalSurface.obj Release/DataStringGlobals.obj Release/DataZoneEnergyDemands.obj Release/DataDaylightingDevices.obj Release/DataPlant.obj Release/DataPhotovoltaics.obj Release/DataEnvironment.obj Release/DataSizing.obj Release/DataCOMIS.obj Release/Datadefineequip.obj Release/DataAirDistributionSystem.obj Release/VectorUtilities.obj Release/DataHVACGlobals.obj Release/DataHeatBalance.obj Release/DataCOMISinp.obj Release/DataAirLoop.obj Release/InputProcessor.obj Release/DataRoomAir.obj Release/DataLoopNode.obj Release/DataDaylighting.obj Release/DataZoneEquipment.obj Release/COMISutil.obj Release/HVACInterfaceManager.obj Release/ConductionTransferFunctionCalc.obj Release/COMISinp.obj Release/PollutionAnalysisModule.obj Release/DataSurfaces.obj Release/General.obj Release/CurveManager.obj Release/DataCostEstimate.obj Release/MoistureTranFuncCalc.obj Release/FluidProperties.obj Release/HeatBalanceIntRadExchange.obj Release/ScheduleManager.obj Release/OutputProcessor.obj Release/COMIStm.obj Release/PsychRoutines.obj Release/MoistureBalanceManager.obj Release/DElightManagerF.obj Release/RoomAirModelMundt.obj Release/MoistureBalanceEMPDManager.obj Release/COMISsolver3.obj Release/RadiantSystemHighTemp.obj Release/ExteriorEnergyUseManager.obj Release/DaylightingDevices.obj Release/SolarReflectionManager.obj Release/NodeInputManager.obj Release/HVACMixerComponent.obj Release/WeatherManager.obj Release/ThermalComfort.obj Release/SetPointManager.obj Release/SurfaceGeometry.obj Release/Purchasedairmanager.obj Release/HVACDualDuctSystem.obj Release/HeatBalanceConvectionCoeffs.obj Release/ADSBalanceManager.obj Release/WindowManager.obj Release/PlantCondLoopOperation.obj Release/HeatBalFiniteDifferenceManager.obj Release/HeatBalanceMovableInsulation.obj Release/ZonePlenumComponent.obj Release/SystemAvailabilityManager.obj Release/COMISsolver2.obj Release/COMISsolver1.obj Release/OutputReportTabular.obj Release/OutAirNodeManager.obj Release/HVACControllers.obj Release/ReturnAirPath.obj Release/HVACSplitterComponent.obj Release/COMISout.obj Release/COMISsolver4.obj Release/DaylightingManager.obj Release/RoomAirModelDisplacementVent.obj Release/EconomicTariff.obj Release/COMISmain.obj Release/RoomAirManager.obj Release/BranchInputManager.obj Release/SolarShading.obj Release/PlantWaterHeater.obj Release/PlantCondLoopTowers.obj Release/HVACWaterCoilComponent.obj Release/HVACFanComponent.obj Release/PlantPondGroundHeatExchanger.obj Release/PlantChillers.obj Release/PlantLoadProfile.obj Release/DirectAir.obj Release/PlantGroundHeatExchangers.obj Release/PlantOutsideCoolingSources.obj Release/DXCoil.obj Release/PlantConnectionComp.obj Release/HeatBalanceInternalHeatGains.obj Release/PlantSolarCollectors.obj Release/HVACEvapComponent.obj Release/PlantPlateHeatExchanger.obj Release/PlantLoopHeatRecoveryManager.obj Release/PlantBoilers.obj Release/HeatRecovery.obj Release/ZoneTempPredictorCorrector.obj Release/ElectricPowerGenerators.obj Release/PlantSurfaceGroundHeatExchanger.obj Re lease/PlantPipes.obj Release/PlantGasAbsorptionChiller.obj Release/HVACHeatingCoils.obj Release/Humidifiers.obj Release/PlantEIRChillers.obj Release/HVACSingleDuctSystem.obj Release/PlantWatertoWaterGSHP.obj Release/HVACWatertoAir.obj Release/BaseboardRadiator.obj Release/PlantPumps.obj Release/Photovoltaics.obj Release/PlantLoopDemandSideManager.obj Release/PlantAbsorptionChillers.obj Release/PlantOutsideHeatingSources.obj Release/PlantFreeCoolingHeatExchanger.obj Release/RadiantSystemLowTemp.obj Release/PoweredInductionUnits.obj Release/PlantDomesticHotWater.obj Release/HVACSingleDuctInduc.obj Release/ElectricPowerManager.obj Release/UnitHeater.obj Release/HVACHXAssistedCoolingCoil.obj Release/HVACDXSystem.obj Release/CostEstimateManager.obj Release/PlantCondLoopSupplySideManager.obj Release/DesiccantDehumidifiers.obj Release/Zoneairloopequipmentmanager.obj Release/NonZoneEquipmentManager.obj Release/MixedAir.obj Release/PlantLoopSupplySideManager.obj Release/UnitVentilator.obj Release/HVACFurnace.obj Release/FanCoilUnits.obj Release/WindowAC.obj Release/SimAirServingZones.obj Release/PlantCondLoopDemandSideManager.obj Release/HVACStandAloneERV.obj Release/Zoneequipmentmanager.obj Release/HVACManager.obj Release/HeatBalanceAirManager.obj Release/HeatBalanceSurfaceManager.obj Release/HeatBalanceManager.obj Release/SizingManager.obj Release/SimulationManager.obj Release/EnergyPlus.obj Release/UtilityRoutines.obj Release/GeneralRoutines.obj Release/OutputReports.obj "KuklaDATA (D)EPPgmSourceDelightDElight2.lib"
]
Creating command line "Link @E:Intel_EPlusEnergyPlusReleaseRSP1.rsp"
Link: executing 'link'
ifwin.lib(ifwinc.obj) : error LNK2019: unresolved external symbol ___WSAFDIsSet@8 referenced in function _FDISSET@8
ifwin.lib(ifwinc.obj) : error LNK2019: unresolved external symbol __imp__AllocateAndInitializeSid@44 referenced in function _fAllocateAndInitializeSid@44
ifwin.lib(ifwinc.obj) : error LNK2019: unresolved external symbol __imp__StartServiceCtrlDispatcherA@4 referenced in function _StartServiceCtrlDisp@8
ifwin.lib(ifwinc.obj) : error LNK2019: unresolved external symbol __imp__GetAce@12 referenced in function _fGetAce@12
Release/EnergyPlus.exe : fatal error LNK1120: 4 unresolved externals
I'm using DFPORT (ifport) and DFNLS (ifnls?) in the main program.
Also checked "use Portlib and use CommonWindowsLibrarys in the Library tab. (Otherwise would have even more unsatisfied externals).
Thanks in advance for any help.
Linda
Jugoslav_Dujic
Geschätzter Beitragender II
978Aufrufe
This thread looks quite similar.
Jugoslav
lklawrie1
Einsteiger
978Aufrufe
Thanks! That looks like it should help. I'm away from the machine that has IVF right now but can test that out on Thurs or Fri when I get back.
Linda
lklawrie1
Einsteiger
978Aufrufe
That thread did help. I added in
USE IFWIN
And now have another question. Here are the link warnings:
------ Build started: Project: EnergyPlus, Configuration: Release Win32 ------
Compiling with Intel Fortran 8.1...
EnergyPlus.f90
Linking...
LINK : warning LNK4089: all references to 'ADVAPI32.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'USER32.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'WSOCK32.dll' discarded by /OPT:REF
Build log written to file://E:Intel_EPlusEnergyPlusReleaseBuildLog.txt
EnergyPlus build succeeded.
Can I get rid of those warnings?
Linda
Steven_L_Intel1
Mitarbeiter
978Aufrufe
Two ways:

1) Remove references to import libraries you don't use (likely found on the Linker..Input property page.)

2) On the Linker..Optimization property page, set References to "Keep Unreferenced Data".
Antworten