Instead of using a constant, have you tried with the string literal for the
library path? I think I recall reading that soft declares can't use variables
or constants to specify libraries.
I could be wrong, but it's worth a try (if you haven't already that is :P)
-----
Scott Pawluk
REALbasic v5.5.5, Windows XP Home SP 2
(trying RB2005r2)
----- Original Message -----
From: Ken Mankoff <mankoff at gmail dot com>
Date: Tuesday, August 9, 2005 2:35 pm
Subject: Re: Declares different on Win v Mac?
> On 8/9/05, Ken Mankoff <mankoff at gmail dot com> wrote:
> >
> >
> > On 8/9/05, Brady Duga <duga at ljug dot com> wrote:
> > >
> > >
> > > On Aug 9, 2005, at 11:23 AM, Ken Mankoff wrote:
> > > > The errors:
> > > > err = nc_inq_dim( ncid, dimid, namePtr, length )
> > > > nc_inq_dim is highlighted, and RB says, "Parameters are not
> > > > compatible with
> > > > this function".
> > >
> > > Are you using the same version of Rb on Mac and Windows? What
> happens> > if you try to build the Windows version from the Mac?
> >
> >
> > Yes I am using RB2005r2 on both Mac and Windows.
> >
> > If I try to compile the Windows version from the Mac I get the
> same
> > compile-time errors. ?!?!
> >
>
> OK, this is a strange twist:
>
> If I delete the constant "library = c:\EVA\netcdf.dll" on windows,
> then I
> can build the windows version on both Mac and Windows.
>
> Now, when I run it, it crashes when it tries to access the
> declare. But it
> does compile.
>
> Why does giving it a library location make it not compile?
> Especially when
> in the case of compiling the windows version on the Mac, that
> library should
> not exist on the mac, it is just a string/name...
>
> -k.
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <" target="l">http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <" target="l">http://support.realsoftware.com/listarchives/lists.html>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|