Re: Core bug, and ebnc bug when handling the core bug
Cory McWilliams <[email protected]> Sun, 21 Mar 2004 11:15:36 -0500
| Newsgroups | gmane.network.everybuddy.devel |
|---|---|
| Message-ID | <[email protected]> |
What does the body of getPrevious look like?
This kind of thing works fine for me.
class Tab
{
/* ... */
Tab *getPrevious() const;
/* ... */
};
Tab *Tab::getPrevious() const
{
/* ... */
}
Are you sure you're rebuilding windows.o? If your definition didn't match
your declaration, I would expect the error "error: prototype for `const Tab*
Tab::getPrevious()' does not match any in class `Tab'"
You might want some dependency checking in your Makefile, so if windows.h
changes, windows.cpp and everything that uses it gets recompiled.
ebnc : $(OBJECTS) dep
...
dep :
@echo > .deps
@for i in $(SRC); do gcc -MM $$i >> .deps; done
-include .deps
One last thing...at the top of main.cpp...I want to be able to run
remotely. :)
Index: main.cpp
===================================================================
--- main.cpp (revision 311)
+++ main.cpp (working copy)
@@ -31,11 +31,13 @@
fd_set fds;
int c;
- if (argc!=2)
- {
- printf("Usage: ebnc <cookie>\n");
- return 1;
- }
+ if (argc!=2 && argc != 3)
+ {
+ printf ("Usage: ebnc <cookie> [<host>]\n");
+ return 1;
+ }
+
+ if (argc == 3) host = argv[2];
/* Read cookie file */
cookieFile = fopen(argv[1], "r");
I can't wait until you get group chats working. Then I'll probably use ebnc a
lot more. Keep up the good work.
Cory
On Sunday 21 March 2004 04:46 am, Karine Proot wrote:
> On Sun, 2004-03-21 at 09:04, A. Craig West wrote:
> A question about const method (I'm trying to switch all my getters to
> const right now) :
> Tab *getPrevious();
> becomes
> Tab *getPrevious() const;
>
> I have elsewhere:
> buddyTab = static_cast<BuddyTab*>(tabs->getFirst()->getPrevious());
>
> but this line fails at linking:
> undefined reference to `Tab::getPrevious()'
>
> If someone could show me the light...
>
> Karine
>
>
> _______________________________________________
> Everybuddy-Dev mailing list
> [email protected]
> http://lists.spine.cx/listinfo/everybuddy-dev