Re: error while compiling Freedos32
- From: Hans-Bernhard Broeker <broeker@xxxxxxxxxxxxxxxxxxxxx>
- Date: 5 Jun 2006 09:16:30 GMT
Jean-Pierre Le Rouzic <jean_contatenated_with_pierre .dot_lerouzic_@at_wanadoo .fr> wrote:
"multiple definition of `_environ'"
I know that means that the symbol environ is used two times,
That you know incorrectly. That error message means exactly what it
says: you have multiple *definitions* of that symbol, not multiple
uses.
but it is not the case in the full sources of Freedos32.
Are you sure you also checked all #included headers, too?
In fact it is used one time, but even when I add an "extern" to the
definition there is always the same message.
That's because you didn't find "the" definition. You found one of
them.
If I understand the error message, the original definition of
"environ" seems to be in boot.c, but it is not there.
It's almost certainly not there, but in some header file. The reason for
this kind of error is invariably one of two possibilities:
1) straight forward conflict between independent sources (e.g. the
DJGPP libc and the freedos kernel), both defining a symbol with the
same name.
2) bad header files, containing definitions when they should only hold
declarations.
--
Hans-Bernhard Broeker (broeker@xxxxxxxxxxxxxxxxxxxxx)
Even if all the snow were burnt, ashes would remain.
.
- References:
- error while compiling Freedos32
- From: Jean-Pierre Le Rouzic
- error while compiling Freedos32
- Prev by Date: Weekly Mini-FAQ post for DJGPP
- Next by Date: ANNOUNCE: DJGPP port of GNU Bison 2.3 uploaded.
- Previous by thread: Re: error while compiling Freedos32
- Next by thread: gcc-4.1.1
- Index(es):
Relevant Pages
|
Loading