Build version 3.02 released
Carlos Santander
csantander619 at gmail.com
Sat Jun 24 05:28:04 PDT 2006
Derek Parnell escribió:
> On Sat, 24 Jun 2006 14:41:45 +1000, David Ferenczi <raggae at ferenczi.net>
> wrote:
>
>> Thank you very much for the new version!
>>
>> Unfortunately, I still have some problems with linking (taking the
>> simplest
>> case form last time, so everey file in the same folder):
>>
>> ****************************************************************************
>>
>> ./build kludge.d
>>
>> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../libphobos.a(monitor.o): In
>> function `_STI_monitor_staticctor':
>
> Sounds like a library not getting used. I don't know which library or
> how it's being referred to. Maybe somebody with GCC experience can help
> us here.
>
-lpthread
If you didn't add that, maybe you didn't add -lm either. Just remember to add
them after -lphobos. And speaking of which (just in case, I haven't checked yet)
it's -lgphobos for gdc.
>>
>>
>> but, adding the -g switch in the same case:
>>
>> ****************************************************************************
>>
>> ./build kludge.d -g
>>
>> gcc: /co: No such file or directory
>
> The "/co" has been added because that's what I guessed was the GCC
> switch to create debugging info. It seems that this is not the right
> switch to use. Create or update the build.cfg file to include a line ...
>
> INIT:SymInfoSwitch = <what_ever_is_correct>
>
> Have a look at the Configuration file documentation for more details...
>
> http://build.dsource.org/configuration_file.html
>
The correct flag is -g
>>
>> Using my fully configured build environment:
>>
>> ****************************************************************************
>>
>> util/build src/kludge.d -debug -g -odobj/debug -ofkludgedebug
>> -unittest -w
>>
>> gcc: /co: No such file or directory
>> gcc: obj/debug/src/kludge.o: No such file or directory
>> gcc: obj/debug/src/application.o: No such file or directory
>> gcc: obj/debug/src/game.o: No such file or directory
>> gcc: obj/debug/src/searchengine.o: No such file or directory
>> gcc: obj/debug/src/board.o: No such file or directory
>> ****************************************************************************
>>
>>
>> The object files are generated in the correct folder (obj/debug/), but
>> the
>> linker searches for them in obj/debug/src/, since the source files are in
>> the src/ folder.
>
> Okay, this might be a bug in unix builds as it works on my windows
> system. I'll look into this.
>
> --Derek Parnell
> Melbourne, Australia
--
Carlos Santander Bernal
More information about the Digitalmars-d-announce
mailing list