查看单个帖子
旧 2009-05-07, 07:16 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】wince Example Wont Compile

wince example won't compile
wince example won't compile
i am trying to compile the odmfcapp example for wince and i am unable to get it to compile for either the emulator or the device.
the error is:
error c2084: function 'void *__cdecl operator new(unsigned int, void *)' already has a body
there are also warnings about
- odplatformsettings.h(162): could not find the file targetconditionals.h
- exgsgdivectorizedevice.cpp(2): could not find the file stdafx.h
i using the project as it is provided in the zip file. i am using the embedded visual c++ compiler 4.0 + sp3.
do you have any tips on how i can get this to compile?
to remove the erros about operator new, you should go where the operator new is declared (in mfc code) and comment that statement. i think that dwgdirect and mfc redefines that operators, and when a class inherits from both, it doesn't know which to use.
at least it worked for my case
the targetconditionals.h file should be to put deppendencies or other stuff related to the target platform, but i'm not sure. (i commented that line as well).
stdafx.h i really don´t remember having that problem but it should not be of greatter concern.
hope this helps.
pedro tenreiro
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)