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

problems compiling

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
Carlos



Joined: 19 Mar 2004
Posts: 396
Location: Canyon, TX

PostPosted: Thu Apr 14, 2005 7:40 am    Post subject: problems compiling Reply with quote

DUI fails to compile with the latest DMD. Mainly due to two things: importing std.c.windows.windows without it being versioned, and there's a enum element named "cent". After changing that, it compiles.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Thu Apr 14, 2005 8:29 am    Post subject: Re: problems compiling Reply with quote

Carlos wrote:
DUI fails to compile with the latest DMD. Mainly due to two things: importing std.c.windows.windows without it being versioned, and there's a enum element named "cent". After changing that, it compiles.


thank you for the warning (as for dool).

the svn version compiles with dmd 0.119
(linux, windows version not up to date).

Ant
Back to top
View user's profile Send private message
popatr



Joined: 20 May 2005
Posts: 3

PostPosted: Fri May 20, 2005 11:16 am    Post subject: Reply with quote

I noticed the compile troubles too, and chalked it up to a buggy d compiler. Maybe not.

Why does the enum 'cent' cause a problem? What should it be changed to?

How do I 'version' that import, as you described?
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Fri May 20, 2005 1:44 pm    Post subject: Reply with quote

popatr wrote:
I noticed the compile troubles too, and chalked it up to a buggy d compiler. Maybe not.


brave words!

popatr wrote:
Why does the enum 'cent' cause a problem? What should it be changed to?

cent is now a reserved word.
It's a keyborad key definition isn't it? I prefixed it with 'k'.

popatr wrote:
How do I 'version' that import, as you described?

just "version(Win32)" on the same line:

version(Win32) private import std.c.windows.windows

Ant

PS the next release is just a weekend away! (I hope)
Back to top
View user's profile Send private message
popatr



Joined: 20 May 2005
Posts: 3

PostPosted: Fri May 20, 2005 6:22 pm    Post subject: Reply with quote

Cool about the new release.

I made the changes but couldn't get it to link. (After trying several iterations of (add lib; try to compile;) I had to give up.)

BTW, I have the windows installer, and neither the setup or install seem to work? I get an Error (path) 264 or something like that. Is it supposed to be put in a specific directory? I ended up just copying all the source manulally into dmd/src and added -I's the sc.ini.

Edit: I should clarify: I couldn't get MY project to link. I did a copy and paste of your hello world sample, and tried to get that all built. I didn't try to build any samples or whatever right from the sdk.. in fact, I didn't even check to see if there were any.
Back to top
View user's profile Send private message
JJR



Joined: 22 Feb 2004
Posts: 1104

PostPosted: Fri May 20, 2005 11:05 pm    Post subject: Reply with quote

Like Ant said, a new release is in the works. There's a few issues that still need to be straightened out. The installer is not really necessary any more depending on what version of DUI you are using (original or dynDUI). If you are using the original DUI, I don't think it's working correctly on Windows at present. If you are using dynDUI, it is still being tested and improved for release, but will not need that installer. Of course, there still may be a use for another simple installer for dynDUI. We'll see.

I'm off on vacation for a few more days. Ant's seems to be working on making a release possible. I'm excited about the release he's planning in the near future. I'm hoping we can make this next release as easy to install and use as possible.

Ant's leds project is currently the biggest test of DUI for both linux and windows. We have partially working, and quite pleasing to look at, versions running on linux and windows.

- John


Last edited by JJR on Sat May 21, 2005 5:17 am; edited 1 time in total
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Sat May 21, 2005 12:38 am    Post subject: Reply with quote

JJR wrote:
There's a few issues that still need to be straightened out.

True, I hope I have Sunday and Monday (long weekend here) to look at them (Saturday is already booked... :(

JJR wrote:
what version of DUI you are using (original or dynDUI).

I would bet that the old version is to be dropped, unless there is a real disadvantage with dynDUI that I don't know about.
I would say that with the new release with move dynDUI to the main branch.
But dynDUI is your brand, John, do we need to keep it?
If we are going to change the name can we drop DUI?
(I didn't know it stands for Driving Und.... when I started the project)

All this means that any work on the old version is probably a wasted of time.

Without John's help nothing of this would be possible!

Ant
Back to top
View user's profile Send private message
JJR



Joined: 22 Feb 2004
Posts: 1104

PostPosted: Sat May 21, 2005 5:16 am    Post subject: Reply with quote

Ant wrote:
JJR wrote:
There's a few issues that still need to be straightened out.

True, I hope I have Sunday and Monday (long weekend here) to look at them (Saturday is already booked... Sad


We work on it as we can... Smile

Ant wrote:
JJR wrote:
what version of DUI you are using (original or dynDUI).

I would bet that the old version is to be dropped, unless there is a real disadvantage with dynDUI that I don't know about.
I would say that with the new release with move dynDUI to the main branch.


I can't see any huge disadvantages. Moving to the dynamic version probably would be a safe bet.

Ant wrote:
But dynDUI is your brand, John, do we need to keep it?
If we are going to change the name can we drop DUI?
(I didn't know it stands for Driving Und.... when I started the project)


Oh! I forgot about that abbreviation! Yeah, we should probably change it. DynDUI name was just a temporary name I thought up to differentiate it from DUI, that's all. Can we think of a better name?

Ant wrote:
All this means that any work on the old version is probably a wasted of time.

Without John's help nothing of this would be possible!


Thanks, for your support, Ant! And even better, this work would not have been possible without the original DUI. Wink The work you've put into is much greater than my small contribution. Smile

I hope we can make DUI or <new-name-here> become even more fun and easy to use.

-JJR
Back to top
View user's profile Send private message
Carlos



Joined: 19 Mar 2004
Posts: 396
Location: Canyon, TX

PostPosted: Sat May 21, 2005 9:38 am    Post subject: Reply with quote

JJR wrote:
Oh! I forgot about that abbreviation! Yeah, we should probably change it. DynDUI name was just a temporary name I thought up to differentiate it from DUI, that's all. Can we think of a better name?


Here's a thread on names: http://www.dsource.org/forums/viewtopic.php?t=565. How about a non-english word? What do you say, Ant?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
JJR



Joined: 22 Feb 2004
Posts: 1104

PostPosted: Sun May 22, 2005 10:11 pm    Post subject: Reply with quote

Thanks for the pointer, Carlos.

I think a name change would be great. A non-English name is welcome, pending Antonio's approval.

We can definitely take time to deliberate on this one. It would be convenient, though, if a new name were decided upon at the time of the new versions announcement.

- JJR
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
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