DLL Dependency Error KERNEL32.dll (GetFileSizeEx). Importing project from visual studio 2015 to 2017
Muhammad FAHEEM
0
Reputation points
Hello;
I am importing my project from visual studio 2015 to visual studio 2017 and trying to build it in 2017 visual studio. The project is compiling/Building correctly in visual studio 2015 in windows 7. I am migrating it into visual studio 2017 in windows 10.
I am getting two errors.
- Error_1 :
- Error description:
DLL dependency in TCanCplus.exe: KERNEL32.dll.GetFileSizeEx - File: D:\Working\Test3000.100\Pc\Test3000\TCanCplus\EXEC The error is related to Kernel32.dll I have checked my [CanCplus.exe] dependencies through a software it is dependent on the [C:\WINDOWS\SysWOW64\kernel32.dll] . Which it should not because I am using own
One Time RTOS 32 4.0 , so, my project shouldn't look for files in windows.
But I don't may be I am importing it from 2015 to 2017 visual studio and windows SDK is updated or something else the dependency is changed somehow. My project exe file doesn't find the correct GetFileSizeEx function.
Second Error is also somewhat related to this thing i feel:
- Error _2 :
- Error description: Error MSB3073 The command ""D:\Working\On Time RTOS-32 4.0\Bin\RTLoc" -DBOOT "D:\Working\On Time RTOS-32 4.0\Bin\Monitor" ......\Cfg\Monitor.cfg rem "D:\Working\On Time RTOS-32 4.0\Bin\Maplines" .\Debug\TCanCplus.exe >> .\Debug\TCanCplus.map rem copy ".\Debug\CanCplus.map" "......\Pc\T.map" "D:\Working\On Time RTOS-32 4.0\Bin\RTLoc" -R+ -D_DEBUG .\Debug\TCanCplus......\Cfg\Pc.cfg :VCEnd" exited with code 1.
- File:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets That is the second Error . My command line in the project properties > Build Events > Post Build Events are Proje"$(RTTarget)\Bin\RTLoc" -DBOOT "$(RTTarget)\Bin\Monitor" ......\Cfg\Monitor.cfg rem "$(RTTarget)\Bin\Maplines" $(OutDir)TCanCplus.exe >> $(OutDir)TCanCplus.map
rem copy "$(OutDir)TCanCplus.map" "......\Pc\T.map"
"$(RTTarget)\Bin\RTLoc" -R+ -D_DEBUG $(OutDir)TCanCplus ......\Cfg\Pc.cfg This error is relevant to conflict of two same libraries but i am not sure about it. the Error code is MSB3073 My project is dependent upon around 12 sub projects all are them building correctly when I compile the final one those two error arrives I feel its some kind of linkage error between my RTOS and my project. I am really not sure.
Please if anyone has any idea or suggestion please let me know. I can explain the issue in more detail if its required. waiting for a quick and positive response.
Developer technologies Visual Studio Other
5,451 questions
Sign in to answer