View Single Post
  #67 (permalink)  
Old 10-01-2009, 09:30 AM
xarlotie xarlotie is offline
Junior Member
 
Join Date: Jun 2009
Posts: 3
xarlotie is on a distinguished road
Question How to make them work?

Quote:
Originally Posted by Mistigri View Post
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 
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?
Reply With Quote