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

Lib creation bug on Windows

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Thu Apr 28, 2005 4:43 am    Post subject: Lib creation bug on Windows Reply with quote

When supplying Build with a source file in a subdirectory, lib files do not get built on Windows (haven't tested on Linux).

Given C:\test\foo\bar.d, ececuting the command line 'build foo\bar.d' from the test directory fails to create a library file. The bar.lsf that is created contains the following:

-c
C:\projects\D\tests\foo\bar.lib

Now, cd into foo and execute 'build bar.d'. The lib is created as expected and bar.lsf reads:

-c
C:\projects\D\tests\foo\bar.lib
bar.obj
Back to top
View user's profile Send private message Send e-mail
Derek Parnell



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

PostPosted: Thu Apr 28, 2005 7:18 am    Post subject: Re: Lib creation bug on Windows Reply with quote

aldacron wrote:
When supplying Build with a source file in a subdirectory, lib files do not get built on Windows (haven't tested on Linux).

Given C:\test\foo\bar.d, ececuting the command line 'build foo\bar.d' from the test directory fails to create a library file. The bar.lsf that is created contains the following:

-c
C:\projects\D\tests\foo\bar.lib

Now, cd into foo and execute 'build bar.d'. The lib is created as expected and bar.lsf reads:

-c
C:\projects\D\tests\foo\bar.lib
bar.obj

For better or worse, I made the decision that, by default, only the .OBJ files in the current directory would be added to a library. However, there is a simple way to include all .OBJ files created by your compile. All you do is use the -allobj switch. You might also need the -full switch to force all files to be compiled.

Code:

build foo\bar.d -allobj -full

_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Thu Apr 28, 2005 7:21 am    Post subject: Reply with quote

Plain as day, right there on the top of the list in the switches documentation. Embarassed Thanks, Derek.
Back to top
View user's profile Send private message Send e-mail
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