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

compiling Derelict with bud+gdc into .a

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
.::]|DEAD|[::.Screamer



Joined: 06 Dec 2006
Posts: 10

PostPosted: Tue Dec 19, 2006 3:36 pm    Post subject: compiling Derelict with bud+gdc into .a Reply with quote

Bud ignore same settings in his cfg file like LibExtension and ObjExtension, gdc compile source into .o object files, but bud link .obj files, .obj files of course dasnt exist, Maybe its my problem, maybe is problem in bud, I search in source code of bud and I found this:
Code:

//file source.d
...
//line 114
//there is maybe the problem, but its constant and dont override from build.d
    const {
        version(Windows) {
            string ExeExt=`exe`;
            string LibExt=`lib`;
            string ObjExt=`obj`;
        }

        version(Posix) {
            string ExeExt=``;
            string LibExt=`a`;
            string ObjExt=`o`;
        }
...


Sorry for my bad english and maybe attack pose.
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Tue Dec 19, 2006 5:49 pm    Post subject: Re: compiling Derelict with bud+gdc into .a Reply with quote

.::]|DEAD|[::.Screamer wrote:
Bud ignore same settings in his cfg file like LibExtension and ObjExtension, gdc compile source into .o object files, but bud link .obj files, .obj files of course dasnt exist, Maybe its my problem, maybe is problem in bud, I search in source code of bud and I found this:
Code:

//file source.d
...
//line 114
//there is maybe the problem, but its constant and dont override from build.d
    const {
        version(Windows) {
            string ExeExt=`exe`;
            string LibExt=`lib`;
            string ObjExt=`obj`;
        }

        version(Posix) {
            string ExeExt=``;
            string LibExt=`a`;
            string ObjExt=`o`;
        }
...


Sorry for my bad english and maybe attack pose.

It looks like you are using an old version of the tool. The current version has these lines as ...

Code:

    // --------- internal strings ----------------
    version(Windows) {
        string vExeExtension=`exe`;
        string vLibExtension=`lib`;
        string vObjExtension=`obj`;
        string vShrLibExtension=`dll`;
        string vLinkerStdOut = ">nul";
    }

    version(Posix) {
        string vExeExtension=``;
        string vLibExtension=`a`;
        string vObjExtension=`o`;
        string vShrLibExtension=`so`;
        string vLinkerStdOut = ">/dev/null";
    }


I suggest you download the latest version and retry it.
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
.::]|DEAD|[::.Screamer



Joined: 06 Dec 2006
Posts: 10

PostPosted: Wed Dec 20, 2006 1:43 am    Post subject: Reply with quote

I have latest version (3.04), but in `source.d` at line 114 is code, what I write here, code, what You write here is in `build.d` at line 102 no?
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Wed Dec 20, 2006 3:26 pm    Post subject: Reply with quote

.::]|DEAD|[::.Screamer wrote:
I have latest version (3.04), but in `source.d` at line 114 is code, what I write here, code, what You write here is in `build.d` at line 102 no?

Yes!

I was not looking at source.d at all. You have found a bug that has been annoying me for awhile now - thank you. The fix is on its way.
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build 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