FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Which version the latest of D2 support juno.051?
Goto page 1, 2  Next
 
Post new topic   Reply to topic     Forum Index -> Juno
View previous topic :: View next topic  
Author Message
samsam698



Joined: 10 Jan 2008
Posts: 63

PostPosted: Sun Oct 11, 2009 2:18 pm    Post subject: Which version the latest of D2 support juno.051? Reply with quote

Greetings!

Just wondering which version the latest of D2 support Juno051? I tried DMD2031-DMD2033,but none can compile example\xml\read.d.The book.xml file I used is from here(books.xml):
http://www.code-box.org/work/an-introduction-to-tangos-powerful-xmlpath-api.xml

I copied the juno-lib-051-d2 to my lib folder;copied juno source juno-051 to my source folder both of where my other D2 libs work fine.

error message under DMD2.032:

F:\laguangeD\Juno>bud -O -release -clean read1.d
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
version.lib
Warning 2: File Not Found version.lib
crypt32.lib
Warning 2: File Not Found crypt32.lib
F:\DLang\Dtwo\dsss\include\d\juno\com\core.obj(core)
Error 42: Symbol Undefined _VarCmp@16
F:\DLang\Dtwo\dsss\include\d\juno\com\core.obj(core)
Error 42: Symbol Undefined _VarCat@12
F:\DLang\Dtwo\dsss\include\d\juno\com\core.obj(core)
Error 42: Symbol Undefined _VarAdd@12
F:\DLang\Dtwo\dsss\include\d\juno\com\core.obj(core)
Error 42: Symbol Undefined _VarSub@12
F:\DLang\Dtwo\dsss\include\d\juno\com\core.obj(core)
Error 42: Symbol Undefined _VarDiv@12
F:\DLang\Dtwo\dsss\include\d\juno\com\core.obj(core)
Error 42: Symbol Undefined _VarMul@12
F:\DLang\Dtwo\dsss\include\d\juno\com\core.obj(core)
Error 42: Symbol Undefined _VarMod@12
F:\DLang\Dtwo\dsss\include\d\juno\com\core.obj(core)
Error 42: Symbol Undefined _VarAnd@12
F:\DLang\Dtwo\dsss\include\d\juno\com\core.obj(core)
Error 42: Symbol Undefined _VarOr@12
F:\DLang\Dtwo\dsss\include\d\juno\com\core.obj(core)
Error 42: Symbol Undefined _VarXor@12

F:\laguangeD\Juno>

Error Message Under DMD2033:

F:\DLang\Dtwo\dsss\include\d\juno\locale\time.d(1823): Error: function juno.loca
le.time.DateTime.opCall (long ticks, DateTimeKind kind = cast(DateTimeKind)0) is
not callable using argument types (DateTime)
F:\DLang\Dtwo\dsss\include\d\juno\locale\time.d(1823): Error: cannot implicitly
convert expression (daylightTime.end()) of type DateTime to int
F:\DLang\Dtwo\dsss\include\d\juno\locale\time.d(1823): Error: expected 8 functio
n arguments, not 1

F:\laguangeD\Juno>

I have no clue where to start.Could you please figure me out?

Thanks in advance.

Regards,
Sam
Back to top
View user's profile Send private message
Numpsy



Joined: 22 Aug 2009
Posts: 27

PostPosted: Mon Oct 12, 2009 4:06 am    Post subject: Reply with quote

The problem with the undefined symbols is discussed in the thread @ http://www.dsource.org/forums/viewtopic.php?t=4747.


The problem with 2.023 might be a bug in the compiler.
There's a similar problem with Tango mentioned @ http://www.dsource.org/projects/tango/forums/topic/816#3377, and the 'fix' is the same (try changing line 1823 of time.d to "DateTime end = daylightTime.end();" ).
Back to top
View user's profile Send private message
samsam698



Joined: 10 Jan 2008
Posts: 63

PostPosted: Mon Oct 12, 2009 11:52 am    Post subject: Reply with quote

Numpsy wrote:
The problem with the undefined symbols is discussed in the thread @ http://www.dsource.org/forums/viewtopic.php?t=4747.


The problem with 2.023 might be a bug in the compiler.
There's a similar problem with Tango mentioned @ http://www.dsource.org/projects/tango/forums/topic/816#3377, and the 'fix' is the same (try changing line 1823 of time.d to "DateTime end = daylightTime.end();" ).



Thank you.
I think you mean Tango version (time.d),so how to fix under D2.032+?

Regards,
Sam
Back to top
View user's profile Send private message
Numpsy



Joined: 22 Aug 2009
Posts: 27

PostPosted: Tue Oct 13, 2009 6:31 am    Post subject: Reply with quote

Line 1823 of juno/locale/time.d is

Code:

DateTime end = daylightTime.end;


If you change it to

Code:

DateTime end = daylightTime.end();


The it should compile in 2.032.

I tried building the whole of the Juno lib in 2.032 and got a couple of other instances of the same error, which were all fixed by adding () to the line in question.
Back to top
View user's profile Send private message
samsam698



Joined: 10 Jan 2008
Posts: 63

PostPosted: Tue Oct 13, 2009 12:10 pm    Post subject: Reply with quote

Numpsy wrote:
Line 1823 of juno/locale/time.d is

Code:

DateTime end = daylightTime.end;


If you change it to

Code:

DateTime end = daylightTime.end();


The it should compile in 2.032.

I tried building the whole of the Juno lib in 2.032 and got a couple of other instances of the same error, which were all fixed by adding () to the line in question.


Thank you.Thank you very much for the help.

But still can't get compiled:


F:\laguangeD\Juno>dmd -O -release juno.lib read1.d
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
version.lib
Warning 2: File Not Found version.lib
crypt32.lib
Warning 2: File Not Found crypt32.lib
F:\DLang\Dtwo\dmd\windows\bin\..\..\..\dsss\lib\juno.lib(core)
Error 42: Symbol Undefined _VarCmp@16
F:\DLang\Dtwo\dmd\windows\bin\..\..\..\dsss\lib\juno.lib(core)
Error 42: Symbol Undefined _VarCat@12
F:\DLang\Dtwo\dmd\windows\bin\..\..\..\dsss\lib\juno.lib(core)
Error 42: Symbol Undefined _VarAdd@12
F:\DLang\Dtwo\dmd\windows\bin\..\..\..\dsss\lib\juno.lib(core)
Error 42: Symbol Undefined _VarSub@12
F:\DLang\Dtwo\dmd\windows\bin\..\..\..\dsss\lib\juno.lib(core)
Error 42: Symbol Undefined _VarDiv@12
F:\DLang\Dtwo\dmd\windows\bin\..\..\..\dsss\lib\juno.lib(core)
Error 42: Symbol Undefined _VarMul@12
F:\DLang\Dtwo\dmd\windows\bin\..\..\..\dsss\lib\juno.lib(core)
Error 42: Symbol Undefined _VarMod@12
F:\DLang\Dtwo\dmd\windows\bin\..\..\..\dsss\lib\juno.lib(core)
Error 42: Symbol Undefined _VarAnd@12
F:\DLang\Dtwo\dmd\windows\bin\..\..\..\dsss\lib\juno.lib(core)
Error 42: Symbol Undefined _VarOr@12
F:\DLang\Dtwo\dmd\windows\bin\..\..\..\dsss\lib\juno.lib(core)
Error 42: Symbol Undefined _VarXor@12
--- errorlevel 10

F:\laguangeD\Juno>

So was I missing something else?And,may I ask how to build juno.lib by myself.I am silly I don;t know what switch to use with dmd or bud when the target source is a folder which contains several subfolders.


Regards,
Sam
Back to top
View user's profile Send private message
Numpsy



Joined: 22 Aug 2009
Posts: 27

PostPosted: Wed Oct 14, 2009 7:20 am    Post subject: Reply with quote

You can try downloading the OleAut32.lib that i posted @ http://www.beardmouse.co.uk/files/OleAut32.lib and overwriting the version in the /dmd/windows/lib directory with it.
This is mentioned in the thread @ http://www.dsource.org/forums/viewtopic.php?t=4747, and other people had some luck with it.

The last post on the first page of that thread also mentions a way to avoid the warnings about version.lib/crypt32.lib (the bit about commenting out lines in juno/base/native.d )
Back to top
View user's profile Send private message
Numpsy



Joined: 22 Aug 2009
Posts: 27

PostPosted: Wed Oct 14, 2009 7:39 am    Post subject: Reply with quote

As far as building Juno goes, i've been using a modified version of the files.rsp file included with the download .zip (I've posted it here).

Just put that file in the directory which contains the Juno directory, and then build with something like:

dmd @files.rsp -lib -O -inline -release -ofjuno.lib
Back to top
View user's profile Send private message
samsam698



Joined: 10 Jan 2008
Posts: 63

PostPosted: Wed Oct 14, 2009 12:13 pm    Post subject: Reply with quote

Back to top
View user's profile Send private message
samsam698



Joined: 10 Jan 2008
Posts: 63

PostPosted: Wed Oct 14, 2009 10:09 pm    Post subject: Reply with quote

Back to top
View user's profile Send private message
Numpsy



Joined: 22 Aug 2009
Posts: 27

PostPosted: Thu Oct 15, 2009 7:16 am    Post subject: Reply with quote

samsam698 wrote:

scope reader = XmlReader.create("books.xml");


It looks like create() needs to be given the full path to the XML file, rather than just a file name.

(Not sure why your post appears blank - i can see the text if i press reply).
Back to top
View user's profile Send private message
samsam698



Joined: 10 Jan 2008
Posts: 63

PostPosted: Thu Oct 15, 2009 12:06 pm    Post subject: Reply with quote

Numpsy wrote:
samsam698 wrote:

scope reader = XmlReader.create("books.xml");


It looks like create() needs to be given the full path to the XML file, rather than just a file name.

(Not sure why your post appears blank - i can see the text if i press reply).


The same error msg even give the full path.Pain..

I am not sure whether this reply can be shown this time.

Regards,
Sam
Back to top
View user's profile Send private message
samsam698



Joined: 10 Jan 2008
Posts: 63

PostPosted: Sun Dec 06, 2009 7:24 pm    Post subject: Reply with quote

During the past a couple of days,I tried to build juno under dmd 1.052 and dmd 1.053,both fine on build.For the sample programs,some work fine very well ,esp those ole_come samples,but some still dosn't work as expected.
1.MessageBeep(-1) ,However I call it doszens of times,the program just beep once,is this ture?
2.XML read example failed as the same as under D2,access voilation error.
3.latebinding example,error msg:Symbol undefined _VarCmp@16 in juno.lib(core).
So was I missing something?

Thanks for your help in advance.

Regards,
Sam
Back to top
View user's profile Send private message
jcc7



Joined: 22 Feb 2004
Posts: 657
Location: Muskogee, OK, USA

PostPosted: Mon Dec 07, 2009 12:52 pm    Post subject: Reply with quote

samsam698 wrote:
During the past a couple of days,I tried to build juno under dmd 1.052 and dmd 1.053,both fine on build.For the sample programs,some work fine very well ,esp those ole_come samples,but some still dosn't work as expected.
1.MessageBeep(-1) ,However I call it doszens of times,the program just beep once,is this ture?
2.XML read example failed as the same as under D2,access voilation error.
3.latebinding example,error msg:Symbol undefined _VarCmp@16 in juno.lib(core).
So was I missing something?

Thanks for your help in advance.

Regards,
Sam


I don't know about #1 or #2, but #3 sounds like you're still missing an entry in your OleAut32.lib. I see that Numpsy offered you an OleAut32.lib, but it could be lacking a particular entry.

You might trying using a .def file (such as oleaut32.def) to create a .lib file such as described at .def files. I've had success with this method in the past.

(See also: Working Juno 0.3.0 code fails with v0.5.1)
Back to top
View user's profile Send private message AIM Address
samsam698



Joined: 10 Jan 2008
Posts: 63

PostPosted: Wed Dec 09, 2009 3:59 am    Post subject: Reply with quote

jcc7 wrote:


I don't know about #1 or #2, but #3 sounds like you're still missing an entry in your OleAut32.lib. I see that Numpsy offered you an OleAut32.lib, but it could be lacking a particular entry.

You might trying using a .def file (such as oleaut32.def) to create a .lib file such as described at .def files. I've had success with this method in the past.

(See also: Working Juno 0.3.0 code fails with v0.5.1)


Thank you!Thank you so much for your prompt help!
1.xml samples,textimage and MessageBeep samples all work great now!
2.For latebinding example,I followed your links and replaced with a newer OleAut32.lib,even tried the method mentioned in your link(comments pragma...).Now it gets compiled.But when it runs,it produce an error msg start with "Error:" and following with some unrecognizable characters.Any idea?
3.For events example,it cannot get compiled.Error:

events.d(7): Error: undefined identifier DOMDocument60
events.d(7): Error: no property 'coCreate' for type 'int'
events.d(7): Error: 1 isn't a template

4.Example 'pingserver'and 'create a sub registry key' from the document:
Code:

module testping;

import juno.net.core;
import juno.utils.registry;
import std.stdio;


void testReg()
{
   scope key=RegistryKey.currentUser.createSubKey("TestKey");
   if(key)
   {
      key.setValue("StringValue","Hello World");
      key.setValue("DWordValue",123);
      key.setValue("BinaryValue",cast(ubyte[])[1,2,3]);
      key.setValue("MultiStringValue",["Hello","World"]);
      writefln("There are %s values for %s",key.valueCount,key.name);
      foreach(valueName;key.valueNames)
      {
         writefln("%s:%s",valueName,key.getValue!(string)(valueName));
      }
   }
}
void pingServer(string server)
{
   scope ping=new Ping;
   auto reply=ping.send(server);
   if(reply.status==IPStatus.Success)
   {
      writefln("Address:%s",reply.address);
      writefln("Roundtrip time:%s",reply.roundTripTime);
   }
}

int main(string[] args)
{
   pingServer("www.yahoo.com");// Error:Operation is not valid;
   testReg();
   
   return 0;
   
}


For pingServer,when program runs,it reported "Error:Operation is not valid";
For registry test function,it works fine except printing blank with the value of DWordValue/BinarayValue and MultiStringValue:

F:\laguangeD\Juno>testping
There are 4 values for \TestKey
StringValue:Hello World
DWordValue:
BinaryValue:
MultiStringValue:



5.May I ask do you have any example for working with office automation,say read from & write to Excel?Your help would be much much appreciated!!

Juno is great!I love it!Thanks for offering such a nice library!

Regards,
Sam
----------------------------------------------------------------------------
Win Xp,dmd 1.053+Juno0.51+dbi0.25+dfl+dwt-win3.x(phobos)
Back to top
View user's profile Send private message
Numpsy



Joined: 22 Aug 2009
Posts: 27

PostPosted: Wed Dec 09, 2009 5:11 pm    Post subject: Reply with quote

samsam698 wrote:


3.For events example,it cannot get compiled.Error:

events.d(7): Error: undefined identifier DOMDocument60
events.d(7): Error: no property 'coCreate' for type 'int'
events.d(7): Error: 1 isn't a template



Try adding an import for juno.xml.msxml.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Juno All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group