On Aug 9, 2005, at 4:00 PM, Ken Mankoff wrote:
On 8/9/05, Brady Duga <duga at ljug dot com> wrote:
On Aug 9, 2005, at 12:02 PM, Ken Mankoff wrote:
If I try to compile the Windows version from the Mac I get the same
compile-time errors. ?!?!
Weird. Maybe you have some platform-specific code nearby? Or maybe
there is something wrong with the Windows constant - you might want
to double check that. And I see from your next email that may be the
case. Make sure the target is correct and that the "string" button is
pushed for the constant.
Yes wierd. Wierd enough I think it is a bug. So my actual declare code
is
this:
#If DebugBuild
soft declare function nc_inq_dim lib library_debug ( ncid as integer,
dimid
as integer, namePtr as ptr, byref length as integer ) as integer
#else
soft declare function nc_inq_dim lib library ( ncid as integer, dimid
as
integer, namePtr as ptr, byref length as integer ) as integer
#endif
Here's the problem. The compiler sees both declarations and decides
that there is a name conflict because the same function is declared
twice. I've encountered this a lot in writing declarations for MacOS
Classic/Carbon.
--------------
Charles Yeomans
_______________________________________________
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>
|