Re: error while compiling Freedos32



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.
.



Relevant Pages

  • Re: 2.3.3 on Solaris 10
    ... It is quite unclear what precisely the compiler error message is ... is expanded through multiple levels of macros. ... Compile the file again: ... fragment of the preprocessor output, ...
    (comp.lang.python)
  • Multiple replies & error message I received here
    ... I regret the multiple copies of my reply here. ... I received an automated error message that the posting failed. ...
    (microsoft.public.word.newusers)
  • Re: How to look up a value in a list and return multiple corresponding values
    ... If you don't see the error message, there are more values to be returned, ... Please keep all correspondence within the NewsGroup, ... up a value and return multiple values (http://office.microsoft.com/en- ... return the first instance of a correponding value: ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Wireless doesnt work anymore: "Limited or no connectivity"
    ... would suspect an LSP/Winsock problem. ... linked above for multiple suggestions on this, but for your first try, ... know what to make of that error message. ...
    (microsoft.public.windowsxp.general)

Loading