The Toradex demo program has the following error message:
What can I change to make it work?
Thanks in advance.
The Toradex demo program has the following error message:
What can I change to make it work?
Thanks in advance.
I would try the beta package release linked in this question. It has fixed several issues that seem to have occurred after a major update. It fixed multiple issues for me.
Should work if you remove the dot… I will update it
Thanks for your answer, but the link is no longer active.
i tried this beta-library: ToradexCeLibraries_2.1b4350-20180319, but even this library does not work. It still comes the same error message.
The solution is not in the actual libraries, but in the project file of your application:
The following sections of UpdateLib_Demo.vcxproj
have been updated to fix the problem. Particular functions (such as for memory allocation) are available in different flavours in Visual Studio’s standard C library ( libcmt.lib
) as well as in the OS. The changes below force the linker to use the OS version of these functions.
...
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Toradex_CE800'">
<Link>
<EntryPointSymbol>mainWCRTStartup</EntryPointSymbol>
<AdditionalDependencies>corelibc.lib;%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreSpecificDefaultLibraries>LIBCMTD.lib;LIBCMT.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
</Link>
<ClCompile>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Toradex_CE800'">
<Link>
<AdditionalOptions>/subsystem:WINDOWSCE,8.00 %(AdditionalOptions)</AdditionalOptions>
<EntryPointSymbol>mainWCRTStartup</EntryPointSymbol>
<AdditionalDependencies>corelibc.lib;%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreSpecificDefaultLibraries>LIBCMTD.lib;LIBCMT.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
</Link>
<ClCompile>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
</ClCompile>
</ItemDefinitionGroup>
...
Hello andy.tx,
i have changed the project file to your specifications, and now i get this error message:
1>LINK : fatal error LNK1181: cannot open input file ‘corelibc.lib’
Where can I find this Lib?
Dear @troubadix
The corelibc.lib is part of the SDK, typically located at
C:\Program Files (x86)\Windows CE Tools\SDKs\Toradex_CE800\Sdk\lib\ARMV7\retail\
This path should be searched automatically if your Toradex_CE800
SDK is properly installed.
Regards, Andy
msvcrt.lib is same as corelibc.lib. So, could you please
Copy C:\Program Files (x86)\Windows CE Tools\Toradex_CE8_SDK\Sdk\Lib\ARMV7\retail\msvcrt.lib
to C:\Program Files (x86)\Windows CE Tools\Toradex_CE8_SDK\Sdk\Lib\ARMV7\retail\corelibc.lib
and use it.
Thanks raja.tx. Now it’s working.