[疑难] 如何让tango和phobos共存?

tomqyp 2007-03-19
不知道
等晚上我自己试试
oldrev 2007-03-19
0.96 beta2 好像可以共存了,但是要打开一个条件编译开关。具体请参考 tango 文档
tomqyp 2007-03-20
jinheking 写道
tomqyp 写道
dlib.d里面
public import tango.core.Thread, tango.util.meta.Traits;
改成
public import tango.core.Thread, tango.core.Traits;
试试

失败了!


我自己也试了一下,好像是dfl自己的原因,调用了一些老版tango的方法,下个    0.9.5.01的dfl就好了.

中途有个错误,把menu.d 加上public import dfl.internal._stdcwindows;就好了
jinheking 2007-03-20
http://www.dprogramming.com/dfltango.php
DFL and Tango
The current DFL release adds support for Tango, a cross-platform open-source software library. Now you can create powerful GUIs with DFL and use the revolutionary Tango library; Tango and DFL, together at last!


Go ahead and download and install DFL and Tango, following the necessary setup instructions.
It is recommended you get ReBuild, version 0.9 or newer is required. Using build/bud or lib files has proven to be problematic.

An example command to create a DFL + Tango application is:

rebuild file.d -Ic:\dmd\import -Ic:\dmd\tango -dc=dmd-win-tango -debug -v1 -L/exet:nt/su:windows:4.0

The first DFL and Tango executable:

我放弃了,我下载了DFL的0.95.01,错误依然,我也按照Tango的方法做了,也是不成功
tomqyp 2007-03-20
贴出你的错误信息试试,我昨天成功编译了一个例子
希望你也能成功
qiezi 2007-03-26
tango用起来不是一般地麻烦亚,有点冒火了,一晚上也没配好。现在很多库也依赖tango,就没人把配置好的dmd和tango打个包下载。。。
qiezi 2007-03-26
编译tango就有问题,比如把Object转成void*,修改了几处代码才通过。后面大问题来了:
引用

dmd -c -release -O -inline -w genobj.d -ofgenobj.obj
genobj.d(83): class object.Object D compiler and phobos/object.d are mismatched
genobj.d(235): class object.ClassInfo D compiler and phobos/object.d are mismatched
genobj.d(272): class object.TypeInfo D compiler and phobos/object.d are mismatched
genobj.d(334): class object.TypeInfo_Typedef D compiler and phobos/object.d are mismatched
genobj.d(362): class object.TypeInfo_Enum D compiler and phobos/object.d are mismatched
genobj.d(366): class object.TypeInfo_Pointer D compiler and phobos/object.d are mismatched
genobj.d(411): class object.TypeInfo_Array D compiler and phobos/object.d are mismatched
genobj.d(487): class object.TypeInfo_StaticArray D compiler and phobos/object.d are mismatched
genobj.d(571): class object.TypeInfo_AssociativeArray D compiler and phobos/object.d are mismatched
genobj.d(601): class object.TypeInfo_Function D compiler and phobos/object.d are mismatched
genobj.d(626): class object.TypeInfo_Delegate D compiler and phobos/object.d are mismatched
genobj.d(653): class object.TypeInfo_Class D compiler and phobos/object.d are mismatched
genobj.d(716): class object.TypeInfo_Interface D compiler and phobos/object.d are mismatched
genobj.d(779): class object.TypeInfo_Struct D compiler and phobos/object.d are mismatched
genobj.d(871): class object.TypeInfo_Tuple D compiler and phobos/object.d are mismatched
genobj.d(933): class object.Exception D compiler and phobos/object.d are mismatched
qiezi 2007-03-26
换成DMD 1.009,编译终于通过了。DDBI遇到点问题:
引用

C:\dmd\import\ddbi>dmd  -run buildme.d
c:\dmd\bin\..\..\dm\bin\link.exe buildme,,,..\tango\lib\common\tango.lib+user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

buildme.obj(buildme)
Error 42: Symbol Undefined _D5tango2io9FileProxy9FileProxy7__ClassZ
buildme.obj(buildme)
Error 42: Symbol Undefined _D5tango2io9FileProxy9FileProxy5_ctorMFAaZC5tango2io9FileProxy9FileProxy
--- errorlevel 2
tomqyp 2007-03-27
qiezi 写道
换成DMD 1.009,编译终于通过了。DDBI遇到点问题:

哈哈 终于等到你对ddbi下手了,希望更多高手都来研究下ddbi,D的数据库工具太少了。

ddbi用的是tango9.5,在9.6里面的FileProxy好像名字跟路径都变了。
把ddbi里对fileproxy的引用路径改成tango.io.FilePath应该就行了吧
qiezi 2007-03-27
我正在弄ddbi,用dsss下载编译的可以使用,不过现在急缺libmysql.lib文件。自己用implib转没成功,它调用dumpbin(vc2005带的)直接退出了。。有这2个工具的传一下。。。
Global site tag (gtag.js) - Google Analytics