I found the problem. Because a GMP multi-precision integer cannot be  
initialized directly with a long long, I use a string number to do the  
initialization. So my routines use ( with x and z long long's):

sprintf(xString, "%lld", x);
and
sscanf(xString, "%lld", &z);

By googling MinGW long long, I found that %lld is not accepted for a  
long long but rather you must use %I64d (that's a capital i). My  
plugin for Windows XP now works as it should.

Thanks for your help, Chris.

Bob



On Dec 19, 2007, at 10:04 AM, Chris Little wrote:

> on 12/19/07 10:34 AM, Bob Delaney at [EMAIL PROTECTED] wrote:
>
>>
>> On Dec 19, 2007, at 8:14 AM, Chris Little wrote:
>>
>>> t should be easy to test the 64 bit int support in MinGW. Build a
>>> simple
>>> "Hello World" app that prints out sizeof(long long).
>>
>> I did that. It gave 8, so MinGW sees a long long as 64 bits. So  
>> that's
>> not the source of my problem.
>>
>>> Are you cross-compiling or build the test app with a native IDE?
>>> With the
>>> former you need to insure that the structure packing is identical.
>>
>> I used MSYS and MinGW running in Windows XP under Parallels on my
>> Intel iMac. As I understand it, I don't believe that is cross- 
>> compiling.
>
> I was asking about the RB IDE. If you're running it on Mac it only  
> knows the
> structure layouts on Mac at build time but the built app will be  
> using the
> Windows plug-in at runtime.
>
> Chris
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to