Compiling D Scintilla for DFL...

D:\D\dfl>D:\D\dmd2\windows\bin\dfl -c -debug -O -inline -I..  scintilla
Error checking versions; use switch -ver for details
D:\D\dmd2\windows\bin\dmd.exe -c -debug -O -inline -I.. scintilla -version=DFL_E XE -ID:\D\dmd2\windows\import -L/exet:nt/su:console:4.0 D:\D\dmd2\windows\lib\DF
L_DE~1.LIB
scintilla.d(212): Error: function dfl.scintilla.Scintilla.text does not override
 any function
scintilla.d(228): Error: function dfl.scintilla.Scintilla.text of type char[]() overrides but is not covariant with dfl.control.Control.text of type immutable(c
har)[]()
scintilla.d(228): Error: function dfl.scintilla.Scintilla.text does not override
 any function
scintilla.d(250): Error: function dfl.scintilla.Scintilla.selectedText does not
override any function
scintilla.d(259): Error: function dfl.scintilla.Scintilla.selectedText of type c har[]() overrides but is not covariant with dfl.textbox.TextBoxBase.selectedText
 of type immutable(char)[]()
scintilla.d(259): Error: function dfl.scintilla.Scintilla.selectedText does not
override any function

Returned status code 1

D:\D\dfl>D:\D\dmd2\windows\bin\dfl -c -debug -O -inline -I.. -odcpp cpp\scintill
a cpp\scilexer
Error checking versions; use switch -ver for details
D:\D\dmd2\windows\bin\dmd.exe -c -debug -O -inline -I.. -odcpp cpp\scintilla cpp \scilexer -version=DFL_EXE -ID:\D\dmd2\windows\import -L/exet:nt/su:console:4.0
D:\D\dmd2\windows\lib\DFL_DE~1.LIB

Making libs...

D:\D\dfl>D:\D\dm\bin\lib -c -n -p32 dflscintilla.lib scintilla cpp\scintilla cpp
\scilexer
Digital Mars Librarian Version 8.02n
Copyright (C) Digital Mars 2000-2007 All Rights Reserved
http://www.digitalmars.com/ctg/lib.html

Error: scintilla.obj : No such file or directory
Failed.
Done.




makescintillalib.bat:

@rem   Make Scintilla interface for D.
@rem   http://www.dprogramming.com/dfl.php

@echo off
@cls


@rem   Either set the environment variables dmd_path and dmc_path
@rem   or fix the paths below.

if not "%dmd_path%" == "" goto dmd_set
set dmd_path=D:\D\dmd2\windows
:dmd_set
if not "%dmc_path%" == "" goto dmc_set
set dmc_path=D:\D\dm
:dmc_set


if "%SCINTILLA_STATIC_BUILD%" == "" goto done_static
set _SCINTILLA_STATIC_BUILD=-version=SCINTILLA_STATIC_BUILD
:done_static


@echo on


@rem   Compile:

        @echo Compiling D Scintilla for DFL...
        
        @rem   -version=NO_DRAG_DROP -version=NO_MDI
        
%dmd_path%\bin\dfl -c -debug -O -inline -I.. %_SCINTILLA_STATIC_BUILD% scintilla
        @if errorlevel 1 goto oops
%dmd_path%\bin\dfl -c -debug -O -inline -I.. -odcpp cpp\scintilla cpp\scilexer
        @if errorlevel 1 goto oops
        
        @echo.


@rem   Make lib file:

        @echo Making libs...
        
%dmc_path%\bin\lib -c -n -p32 dflscintilla.lib scintilla cpp\scintilla cpp\scilexer
        @if errorlevel 1 goto oops
        
        @echo.


@goto done
:oops
@echo Failed.


:done
@echo Done.



thank you !

dolive


I don't think this Scintilla control has been made compatible with D2 yet.
You can probably start by using string instead of char[]

Reply via email to