Re: DJGPP - Configure errors
Brought to you by:
set
From: Salvador E. T. <sal...@in...> - 2005-08-01 13:45:29
|
Thiago F.G. Albuquerque wrote: >> > On Tue, 19 Jul 2005, Salvador Eduardo Tropea wrote: >> > > > ... that in this case include/tv/nointl.h is used where: >> > > > > static char *getTextNew(const char *msgid, Boolean >> onlyIntl=False) >> > > { return onlyIntl ? NULL : newStr(msgid); }; >> > ^ >> > That's the problem!--------------------------------------------| >> > (sorry for those using proportional fonts :) >> > > I removed this ';' after the closing bracket and it solved the >> problem. >> > I am sending a patch attached. >> >> Ugh!! that's quite bizarre, a bug in the compiler? Why? The same >> class have the same on other members ... > > > Yes, but this semi-colon shouldn't be there anyway: Empty lines are allowed in C and C++, this semicolon is an empty line, just like this: void pp() { } // Next is empty ; > this is a definition, not a declaration. Think about it: if this was a > "normal" function -- a function defined ouside the class declaration > -- you wouldn't put a semi-colon after the body, would you? And that > may explain the unresolved reference error: because of the semi-colon, > the compiler saw this as a declaration, and look for the definition > elsewhere. As he didn't find it... > And yes, all the other methods in this class are defined the same way: > so why the compiler would give an error only with this one? The only > explanation I can come up with is that the other methods are not used > (is this true?), so the linker doesn't look for them. Nope, you are wrong, that's a bug in the compiler. > >> This is part of pathtool.cc, it seems to be missing and is only used >> by DOS. I'm fixing it, patch attached. > > > Thank you. I had some difficulties applying the patch. It failed in > hunk #2, because in my version of the file, "#include <pathtool.h> // > IsADirectory" is in a different position. So I deleted hunk 2, applied > the patch and then removed this line manually. Everything compiled fine. Where did you get the sources? I'm using CVS code as reference. > There is a bug in the editor involving tabs. I'll start another thread > to talk about this. > Ok. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |