realbasic-nug
[Top] [All Lists]

Re: Declares different on Win v Mac?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Declares different on Win v Mac?
From: Charles Yeomans <charles at declareSub dot com>
Date: Tue, 9 Aug 2005 16:06:13 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <5c8121ef0508091052c482c3d at mail dot gmail dot com> <46ade30920c0f0e7aad61bab085c251c at declareSub dot com> <5c8121ef05080911236b9a2123 at mail dot gmail dot com> <EC6E389D-410E-46E6-B6CB-0830AA5F6A57 at ljug dot com> <5c8121ef05080912024361f9a5 at mail dot gmail dot com> <D1D7EB0E-0B2E-42B9-8E71-3434541FF95C at ljug dot com> <5c8121ef050809130057217c90 at mail dot gmail dot com>

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>

<Prev in Thread] Current Thread [Next in Thread>