Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Format with Smaug 1.6 FUSS

Format with Smaug 1.6 FUSS

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Jible   (1 post)  Bio
Date Tue 22 Nov 2005 09:29 PM (UTC)
Message
We entered a snippet we got from called editor.0103.tgz http://cronel.mube.net/code.shtml
it's supposed to help add in the format command but we got all these errors can someone help?

boards.c:462: warning: declaration of `board' shadows a parameter
boards.c:238: warning: shadowed declaration is here
boards.c:466: parameter `quill' is initialized
boards.c:466: parameter `paper' is initialized
boards.c:466: parameter `tmpobj' is initialized
boards.c:467: parameter `ed' is initialized
boards.c:472: parameter `mfound' is initialized
boards.c:474: syntax error before "if"
boards.c:987: syntax error before "if"
boards.c:1303: syntax error before "do"
boards.c:1409: conflicting types for `word'
boards.c:1299: previous declaration of `word'
boards.c:1409: warning: redundant redeclaration of `word' in same scope
boards.c:1299: warning: previous declaration of `word'
boards.c:1411: syntax error before "for"
boards.c:1490: redeclaration of `board'
boards.c:462: `board' previously declared here
boards.c:1490: warning: declaration of `board' shadows a parameter
boards.c:462: warning: shadowed declaration is here
boards.c:1491: redeclaration of `pnote'
boards.c:461: `pnote' previously declared here
boards.c:1491: warning: declaration of `pnote' shadows a parameter
boards.c:461: warning: shadowed declaration is here
boards.c:1495: syntax error before "first_board"
boards.c:1551: syntax error before "argument"
boards.c:1888: redeclaration of `found'
boards.c:1545: `found' previously declared here
boards.c:1888: warning: declaration of `found' shadows a parameter
boards.c:1545: warning: shadowed declaration is here
boards.c:1889: redeclaration of `arg'
boards.c:460: `arg' previously declared here
boards.c:1889: warning: declaration of `arg' shadows a parameter
boards.c:460: warning: shadowed declaration is here
boards.c:1891: syntax error before "argument"
boards.c:1957: parameter `cnt_to' is initialized
boards.c:1957: parameter `cnt_from' is initialized
boards.c:1959: syntax error before "for"
make[1]: *** [o/act_info.o] Error 1
make[1]: *** Waiting for unfinished jobs....
distcc[31831] ERROR: compile on 10.10.200.10:10666/4 failed
Compiling o/build.o....
make[1]: *** [o/imc.o] Error 1
make: *** [all] Error 2
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 23 Nov 2005 07:44 PM (UTC)
Message
Sounds like you have put things in the wrong place.

For example, in this test program:


#include <stdio.h>
#include <stdlib.h>

int test (int i)
  {
  int i;
  }

int main (void) {

}

Errors:


test.c: In function `test':
test.c:6: warning: declaration of `i' shadows a parameter



In other words, the local "i" shadows (covers up) the parameter "i".



- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


9,898 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.