![]() |
【转帖】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 |
所有的时间均为北京时间。 现在的时间是 04:54 PM. |