Quote:
Originally Posted by Mistigri
Hi Tim,
When using dev-c++ the def file is generated for you automatically the problem is that you end up with function names that look like this :
PHP Code:
EXPORTS
_Z11GetSMAArrayP8RateInfoiiPd@16 @ 1
_Z12GetHighValueP8RateInfoii = _Z12GetHighValueP8RateInfoii@12 @ 2
_Z12GetHighValueP8RateInfoii@12 @ 3
_Z13GetCloseValueP8RateInfoii = _Z13GetCloseValueP8RateInfoii@12 @ 4
_Z13GetCloseValueP8RateInfoii@12 @ 5
_Z11GetSMAArrayP8RateInfoiiPd = _Z11GetSMAArrayP8RateInfoiiPd@16 @ 6
Now you need to make sure you add the following check around your code
PHP Code:
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
Attached are the sample files I did for VS2008 but this time using dev-c++ ...
Hope this helps 
|
how do we test those files?? what should we do? As far as i know, host applications for Dev C++ are only exe. How can we use the ex4?