Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/20/08 14:16
Read: times


 
#151207 - error messages
Responding to: ???'s previous message
John Papas said:
the wrong messages are:

OK - so it's a bit of a problem in the translation into English, then!

Those are what we call "error messages" or similar.

The messages themselves are not wrong; in fact, they are perfectly correct! They are pointing-out things that are wrong with your source code

error: rd_wr redefinition

As Jan explained, 'C' does not allow executable statements outside functions. Therefore, the compiler takes anything outside a function to be a definition.
Since rd_wr was previously defined, this must be a re-definition - which is not allowed.

error: m undefined identifier ,many times

All identifiers - ie, variable names, function names, etc - must be defined (or declared) before they are used.
Because your definition of 'm' was invalid (see other error messages), it doesn't count. Hence 'm' effectively has no definition - in other words, it is undefined.

You will often find that one error leads to a string of others - so always fix the earliest error first!

error: ldgzero undefined identifier

Same as for 'm'

error: syntax error near bit //i write hear shows also wrong

Jan also explained this one.

thanks Jan Waclawek i will try also to SDCC

You would be far better advised to just pick one compiler and stick with it - chopping and changing between different compilers will only confuse you at this stage!




List of 8 messages in thread
TopicAuthorDate
Display, C code problem            01/01/70 00:00      
   RE: wrong messages?            01/01/70 00:00      
      that sounds strange            01/01/70 00:00      
         stranger            01/01/70 00:00      
            I 'know' it would not, however            01/01/70 00:00      
   sdcc            01/01/70 00:00      
   the wrong messages            01/01/70 00:00      
      error messages            01/01/70 00:00      

Back to Subject List