View previous topic :: View next topic |
Author |
Message |
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Thu Apr 28, 2005 4:43 am Post subject: Lib creation bug on Windows |
|
|
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 |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Thu Apr 28, 2005 7:18 am Post subject: Re: Lib creation bug on Windows |
|
|
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 |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Thu Apr 28, 2005 7:21 am Post subject: |
|
|
Plain as day, right there on the top of the list in the switches documentation. Thanks, Derek. |
|
Back to top |
|
|
|
|
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
|