| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Compiling timEd |
Hello andrew!
10 Mar 07 03:02, you wrote to me:
ac> Fri 2007-03-09 02:59, andrew clarke (3:633/267) wrote to Martin
ac> Foster:
ac>> Can you send me the full output? E-mail (preferred) or netmail
ac>> is OK.
ac> OK, I got your e-mail:
OkiDoki.
ac> showhdr.c: At top level:
ac> showhdr.c:151: error: static declaration of ???weekday_ab??? follows
ac> non-static declaration ../xmsgapi/src/msgapi.h:407: error: previous
ac> declaration of ???weekday_ab??? was here showhdr.c: In function
ac> ???MakeSubject???:
ac> This is different to the previous error you showed me. (?)
Hmmmmmmm, it's almost the same ;-)
ac> Anyway, all the warnings prior to that you can just ignore for now,
ac> although I suppose I may need to fix those eventually.
OK.
ac> For a possible fix, try the change below, ie. delete four lines from
ac> showhdr.c starting on line 151. (weekday_ab[] is already in msgapi.c
ac> in XMSGAPI, so we don't need it again.)
ac> $cvs diff -c
ac> cvs server: Diffing .
ac> Index: showhdr.c
ac> ===================================================================
ac> RCS file: /cvsroot/timed/showhdr.c,v
ac> retrieving revision 1.5
ac> diff -c -r1.5 showhdr.c
ac> *** showhdr.c 5 Dec 2003 05:19:18 -0000 1.5
ac> --- showhdr.c 9 Mar 2007 16:08:19 -0000
ac> ***************
ac> *** 148,158 ****
ac> return a_string;
ac> }
ac> - static char weekday_ab[][4] =
ac> - {
ac> - "Sun", "Mon", "Tue",
"Wed", "Thu", "Fri", "Sat"
ac> - };
ac> -
ac> char *MakeT(union stamp_combo *msgt, int type)
ac> {
ac> static char temp[50];
ac> --- 148,153 ----
OK, I did that and tried re-compiling but I got a different error this time
relating to line 72 in showhdr.c
I managed to figure out the error message myself and changed line 72 from
"memset(temp, '{at}, sizeof(temp));" to "memset(temp, '{at}',
sizeof(temp));". I then tried re-compiling again and Bingo! - it
compiled OK.
I haven't commited my change to the repository because, as you know, I'm
not a programmer and so I don't know if my change is actually correct. All
I know is that it now compiles with gcc 4.1.1
Thanks for your help.
Regards,
Martin
--- GoldED+/W32-MINGW 1.1.5-20070206-mf
* Origin: Bitz-Box - Bradford - UK (2:252/333)SEEN-BY: 10/1 3 14/300 400 34/999 106/1 120/228 123/500 134/10 140/1 222/2 SEEN-BY: 229/4000 237/53 249/303 261/1 38 100 1404 1406 1418 266/1413 280/1027 SEEN-BY: 320/119 393/68 633/104 260 262 267 285 690/682 712/848 751/321 SEEN-BY: 800/432 2222/700 2320/111 2800/18 2905/0 @PATH: 252/333 110 140/1 261/38 633/260 267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.