Windows CE 6.0 and runtime link to Debug DLL /MDd

て烟熏妆下的殇ゞ 提交于 2019-12-20 06:28:35

问题


I'm using Windows CE 6.0 R3 on an x86 PC. I've build the NK.bin and the SDK for the platform. But I've some problem to understand how can I build a console application with /MTd (Debug DLL).

If I try to build this:

// main.c with /MDd
#include <stdio.h>
int main(int argc, char* argv[])
{
    printf("Hello World\n");
    return 0;
}

This work perfectly, but

// main.cpp /MDd
#include <iostream>
int main(int argc, char* argv[])
{
    std::cout << "Hello World\n";
    return 0;
}

build but the application "crash". Seems that the C++ STD shared lib in debug version is not present on the target platform but the debug version of CRT is present.

What have I to do to build C++ application for windows ce 6.0 that link to the debug version of c++ library?

What have I to do to build C++ application for windows ce 6.0 that link to the debug version of c++ library? Have I've to change my Platform Builder?


回答1:


Fount the problem. The issue is that VS 2008 doesn't deply the debug version of CRT so I've have to deploy manualy the msvcr90d.dll on the target platform. The msvcr90d.dll is located in $(VCInstallDir)/ce/bin/$(ARCHFAM).



来源:https://stackoverflow.com/questions/15959877/windows-ce-6-0-and-runtime-link-to-debug-dll-mdd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!