On 9-Aug-05, at 4:50 PM, Ken Mankoff wrote:
We'd have to redesign the entire Declare system and much of the
compiler
frontend to fix this problem; it is an error not of implementation
but of
design.
Everyone seems to be missing the real issue - if two declares confuse
the compiler, the obvious solution is to use one declare. So, if RB
let you define constants for build environments, i.e. "Mach-O Debug"
vs. "Mach-O Release" everything would be fine.
An alternate (better) solution would be to provide a post-linker
"copy files" phase so we can stuff dylibs into the app bundle where
they belong.
@Ken; If you've only got a few declares to this library, try defining
constants locally in each method:
#If TargetMacOS
#If DebugBuild
Const libname = "aoeu"
#else
Const libname = "aoeuX"
#endif
#elseif TargetWin32
Const libname = "aoeuW"
#endif
soft declare function foo lib libname ( baz as integer ) as integer
This isn't an elegant solution, but it should work...
Frank.
–––––––––––––––––––––––––––––––––
Open Source RB Goodies and Shareware
<http://developer.chaoticbox.com/>
<http://www.chaoticbox.com/>
–––––––––––––––––––––––––––––––––
_______________________________________________
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>
|