- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Why doesn't the following code function?
whereas
functions OK.
The conditional compilation seems to be completely ignored for use statements.
Even if $DLL is not defined the compiler starts complaining about not finding the DllGlobal.mod file.
Walter Kramer
Why doesn't the following code function?
!DEC$ IF DEFINED ($DLL)
USE DllGlobals
!DEC$ ENDIF
whereas
!DEC$ IF DEFINED($DLL)
iGuarantee=0
!DEC$ ENDIF
functions OK.
The conditional compilation seems to be completely ignored for use statements.
Even if $DLL is not defined the compiler starts complaining about not finding the DllGlobal.mod file.
Walter Kramer
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, it works in both cases. You're probably confused by the complaints about "Cannot find DllGlobals.mod" -- these come from dependency analyser, which scans source files to build dependency tree before any actual compiling. These messages are benign -- compiler will not actually USE the module.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let me warn you, however, that the !DEC$ IF style of conditional compilation operates on a per-statement mode, not per-line as you might think. You can't use !DEC$ IF to conditionally add to or subtract from part of a statement.
Steve
Steve
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page