harmonia & build

Hasan Aljudy hasan.aljudy at gmail.com
Sat Mar 18 11:19:49 PST 2006


Derek Parnell wrote:
> On Sat, 11 Mar 2006 18:56:05 +1100, Hasan Aljudy 
> <hasan.aljudy at gmail.com>  wrote:
> 
>> build expects to see a "main" function inside the file sent to it 
>> thru  the command line.
>> Harmonia doesn't work that way. The main function is somewhere else!!
>>
>> How can I get build to realize this fact and properly invoke the 
>> linker  to build an exe file instead of a lib file?
> 
> 
> If you use the "-link" command line switch, it calls the linker rather  
> than the librarian. It normally calls the librarian if it doesn't find  
> 'main' or 'WinMain'. Use -link if the 'main' is to be found in a 
> library  rather than any of the source files. Just make sure you link in 
> the  library file too, of course.
> 

The problem was that I put harmonia in the phobos source directory. When 
I used the -V switch on build, I saw that build ignored all module under 
phobos, including harmonia.

I just moved harmonia somewhere else, and then build saw the main function.



More information about the Digitalmars-d-dwt mailing list