Warning(1027)

I have received the following message in my attempts to compile a
program:

Warning(1027): file …/atuador.o (/home/progran/atuador.cpp):
redefinition of int near open_ShareMemo( char near *, void near * ) ignored
Warning(1027): file …/atuador.o (/home/progran/atuador.cpp):
redefinition of void near close_ShareMemo( int, char near *, void near * )
ignored

Does anybody know anything about this?

Excuse me my bad english. I wanted to say: “Does somebody know something
about this?”

“Gustavo” <gandre@usp.br> wrote in message news:a9mok1$61h$1@inn.qnx.com

I have received the following message in my attempts to compile a
program:

Warning(1027): file …/atuador.o (/home/progran/atuador.cpp):
redefinition of int near open_ShareMemo( char near *, void near * )
ignored
Warning(1027): file …/atuador.o (/home/progran/atuador.cpp):
redefinition of void near close_ShareMemo( int, char near *, void near * )
ignored

It mens the functions open_ShareMemo and close_ShareMemo are defined twice.

It could be you are include the same object twice in the link command or
that you have
two functions of the same names in you source files and/or libraries

Does anybody know anything about this?

But I use the “#ifndef” preprocessor commands in my archives of
interfaces (when they are defined open_ShareMemo() and close_ShareMemo()
functions). And theses functions aren’t defined twice ( I’m sure this,
because I changed theirs names and tried to compile again, but I received
the same message.).
Does somebody have some another suggestion?

“Mario Charest” <goto@nothingness.com> wrote in message
news:a9mqa0$754$1@inn.qnx.com

“Gustavo” <> gandre@usp.br> > wrote in message
news:a9mok1$61h$> 1@inn.qnx.com> …
I have received the following message in my attempts to compile a
program:

Warning(1027): file …/atuador.o (/home/progran/atuador.cpp):
redefinition of int near open_ShareMemo( char near *, void near * )
ignored
Warning(1027): file …/atuador.o (/home/progran/atuador.cpp):
redefinition of void near close_ShareMemo( int, char near *, void near

  • )
    ignored

It mens the functions open_ShareMemo and close_ShareMemo are defined
twice.

It could be you are include the same object twice in the link command or
that you have
two functions of the same names in you source files and/or libraries

“Gustavo” <gandre@usp.br> wrote in message news:a9n4nf$ea7$1@inn.qnx.com

But I use the “#ifndef” preprocessor commands in my archives of
interfaces (when they are defined open_ShareMemo() and close_ShareMemo()
functions). And theses functions aren’t defined twice ( I’m sure this,
because I changed theirs names and tried to compile again, but I received
the same message.).
Does somebody have some another suggestion?

Well sometime is defined twice and most probably differently.
You may have a prototypes that doesn’t quite match the fonction
definition.


“Mario Charest” <> goto@nothingness.com> > wrote in message
news:a9mqa0$754$> 1@inn.qnx.com> …

“Gustavo” <> gandre@usp.br> > wrote in message
news:a9mok1$61h$> 1@inn.qnx.com> …
I have received the following message in my attempts to compile a
program:

Warning(1027): file …/atuador.o (/home/progran/atuador.cpp):
redefinition of int near open_ShareMemo( char near *, void near * )
ignored
Warning(1027): file …/atuador.o (/home/progran/atuador.cpp):
redefinition of void near close_ShareMemo( int, char near *, void near

  • )
    ignored

It mens the functions open_ShareMemo and close_ShareMemo are defined
twice.

It could be you are include the same object twice in the link command or
that you have
two functions of the same names in you source files and/or libraries