[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gmp-discuss
Subject:    MPFR dll exports under VC6 (Ben Aguayo)
From:       mathimagics () yahoo ! co ! uk (Jim White)
Date:       2006-04-17 12:40:33
Message-ID: 20060417124033.54846.qmail () web86809 ! mail ! ukl ! yahoo ! com
[Download RAW message or body]

I don't use VC6 myself, but I'll assume you have some specific reason for wanting to \
use it to build MPFR?  I take it that you are aware that   
a)  just because your app language is VC6, that doesn't mean you have to use VC6 to \
build the MPFR dll  
b) building MPFR and GMP with gcc under MinGW is easy and painless
 
 
Nevertheless, if you want to go ahead, then it shouldn't be too hard to organise your \
exports.  
mpfr.h  should have all the function declarations in a single block (eg. in my last \
build they start around line #123, and are easily distinguished by the _PROTO \
keyword).  
Seems to me you just need to add a line " #define EXPORT  __declspec(dllexport)" and \
then put the keyword EXPORT in front of each of those function declarations, then \
just run make again.  
Sorry I can't swear to this, but worth a try probably ....
 
Cheers
JW
 
PS: You might also like to check the VC6 documentation, I'd have thought they would \
have some switch that let you export everything by default (which is what MinGW/gcc \
does, by the way)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic