#pentagram@irc.freenode.net logs for 10 Feb 2003 (GMT)

Archive Today Yesterday Tomorrow
Pentagram homepage


[00:07:39] --> Kirben has joined #pentagram
[00:07:39] --- ChanServ gives channel operator status to Kirben
[02:04:33] <-- Dark-Star has left #pentagram ()
[03:47:08] <Kirben> pentagram cvs is currently broken:
[03:47:09] <Kirben> In file included from kernel/Application.cpp:27:
[03:47:09] <Kirben> usecode/UCProcess.h:31: base class `Process' has incomplete type
[03:47:09] <Kirben> kernel/Application.cpp: In member function `virtual void Application::run()':
[03:47:09] <Kirben> kernel/Application.cpp:142: no matching function for call to `UCMachine::
[03:47:09] <Kirben> addProcess(UCProcess*&)'
[03:47:11] <Kirben> usecode/UCMachine.h:48: candidates are: uint16 UCMachine::addProcess(Process*)
[06:28:54] --- DarkeZzz is now known as Darke
[08:59:51] <Kirben> Any ideas on pentagram compile error ? see above ^
[09:02:43] <Darke> No idea. I'll grab the latest cvs and check it out.
[09:08:27] <Darke> Kirben: The useless include paths were just there 'cause the code evolved so much. *grin* I tend to snip them out when I find the obviously unnecessary ones, but a few slip through.
[09:09:36] <Kirben> ok
[09:13:50] <Darke> Hmm... works fine and doesn't even spit out a warning with my paranoid warnings turned on. This is from the latest cvs?
[09:15:05] * Darke checks the code. What version of gcc are you using under mingw? 3.0? 3.1?
[09:15:37] <Kirben> 3.2
[09:18:18] <Kirben> and latest cvs
[09:19:19] <Darke> Line 142 looks like this for me: ucmachine->addProcess(p); which should be correct since p is a pointer to a UCProcess...
[09:24:14] <Kirben> Could it be related to ucprocess changes recently ? to process
[09:27:57] <Darke> Hmm... 'base class Process has incomplete type'? Looks ok to me... oh!
[09:28:06] <Darke> Change that line 142 to this: ucmachine->addProcess((Process *)p);
[09:28:53] <Darke> I'm not sure why the UCMachine is accepting any process, rather then a UCProcess though...
[09:29:42] <Kirben> Now I just get:
[09:29:43] <Kirben> In file included from kernel/Application.cpp:27:
[09:29:43] <Kirben> usecode/UCProcess.h:31: base class `Process' has incomplete type
[09:32:54] --> Cashman has joined #pentagram
[09:38:02] * Darke is trying to work out why... it 'should' be right afaict.
[09:38:13] <Darke> Maybe replace:
[09:38:14] <Darke> virtual bool run(const uint32 framenum) = 0;
[09:38:18] <Darke> with:
[09:38:24] <Darke> virtual bool run(const uint32 framenum) {};
[09:38:29] <Darke> and see what happens?
[09:38:51] <Darke> Actually, you'll likely get a warning/error. Try:
[09:38:57] <Darke> virtual bool run(const uint32 framenum) { return false; };
[09:39:01] <Darke> instead.
[09:40:31] <Kirben> same error
[09:41:13] * Darke eartwitches and wonders what he's missing. The code looks *right* and compiles under gcc3.2.1...
[09:41:41] <Kirben> Could it be another name conflict with mingw ?
[09:42:45] <Darke> Hmm... that would make sense. Can you find another file with that name?
[09:45:58] <Kirben> just a sec
[09:46:08] <Kirben> Just tried again with normal build system and it works, so something wrong in makefile.mingw ?
[09:47:12] <Darke> Unsure. I haven't actually used it.
[09:47:20] <Kirben> it uses:
[09:47:20] <Kirben> g -g -O2 -DHAVE_CONFIG_H -I./convert -I./convert/u8 -I./convert/crusader -I./misc -I./filesys -I./tools -I./tools/disasm -I./tools/fold -I./tools/shapeconv -I./kernel -I./graphics -I./audio -I./usecode -I./world -I./world/actors -I./gumps -I./conf -I./. -I. -I/usr/local/include/SDL -Dmain=SDL_main -c -o kernel/Application.o kernel/Application.cpp
[09:47:39] <Kirben> While makefile.mingw uses:
[09:47:40] <Kirben> g++ -O2 -Wno-long-long -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -I./conf -I./convert -I./filesys -I./graphics -I./gumps -I./misc -I./tools/disasm -I./tools/fold -I./usecode -I./sdl/include -c -o kernel/Application.o kernel/Application.cpp
[09:48:25] <Darke> Ahh. It's missing a `-I./kernel`?
[09:50:58] <Kirben> no doesn't help
[09:51:28] <Kirben> oops line got cut off before, normal build system uses:
[09:51:29] <Kirben> g++ -Wp,-MMD,"kernel/.deps/Application.d",-MQ,"kernel/Application.o",-MP -Wall -g -g -O2 -DHAVE_CONFIG_H -I./convert -I./convert/u8 -I./convert/crusader -I./misc -I./filesys -I./tools -I./tools/disasm -I./tools/fold -I./tools/shapeconv -I./kernel -I./graphics -I./audio -I./usecode -I./world -I./world/actors -I./gumps -I./conf -I./. -I. -I/usr/local/include/SDL -Dmain=SDL_main -c -o kernel/Application.o kernel/Application.cpp
[09:53:27] <Darke> Process.h is in Kernel and... hmm... should use 'Kernel.h' since it lists 'Kernel' as a friend. Maybe add a `#include "Kernel.h"` to Process.h?
[09:54:28] <Darke> The normal build system uses dependanices, whislt the mingw one doesn't seem too, too.
[09:55:34] <Kirben> no difference with that change either.
[09:55:53] <Kirben> I'm not sure how to add dependanices correctly to makefile.mingw.
[09:56:58] * Darke doesn't know either.
[09:58:39] <-- Cashman has left #pentagram ()
[10:32:42] <Kirben> Silly me, adding a -I./kernal worked, I used kernal my mistake before.
[10:32:54] <Kirben> err kernel I mean
[10:33:41] <Darke> Cool! Yes I make that mistake almost continuously. *grin*
[10:38:18] <-- Kirben has left IRC (adams.freenode.net irc.freenode.net)
[10:38:35] --> Kirben has joined #pentagram
[10:39:08] <Kirben> Is fold still a separate program ? or just part of disasm now ?
[10:41:10] <Darke> It still uses disasm's 'shell', but it is still a seperate program, so to speak. *grin*
[10:42:48] <Kirben> So its normal for them both is give exact same usage options ? when starting without argument
[10:43:20] <Darke> Yep.
[10:43:51] <Darke> It was intending to be only a temporary thing, but I've been working on the compiler at the moment and haven't had a chance to change it.
[10:51:51] --> Colourless has joined #Pentagram
[10:51:51] --- ChanServ gives channel operator status to Colourless
[10:53:47] <Kirben> hmm should pentagram console be displaying any images yet ? like in picture wjp posted
[10:54:10] <Darke> I don't think so. I think that was just wjp testing things.
[12:14:23] --- Colourless is now known as Cless|Away
[12:22:05] --- Darke is now known as DarkeAFK
[13:04:08] <-- Kirben has left IRC ("System Meltdown")
[13:06:39] --- Cless|Away is now known as Colourless
[14:26:43] <-- Colourless has left IRC ("casts invisibility")
[16:57:22] --> wjp has joined #pentagram
[16:57:22] --- ChanServ gives channel operator status to wjp
[17:17:50] --- DarkeAFK is now known as Darke
[19:48:07] --- Darke is now known as DarkeZzz
[23:06:27] <-- wjp has left IRC ("Zzzz...")
[23:16:12] <-- DarkeZzz has left IRC (adams.freenode.net irc.freenode.net)
[23:29:39] --> DarkeZzz has joined #pentagram
[23:29:39] --> Jett has joined #pentagram
[23:29:39] --- ChanServ removes channel operator status from DarkeZzz
[23:31:20] <-- DarkeZzz has left IRC (Read error: 113 (No route to host))
[23:45:11] --> Kirben has joined #pentagram
[23:45:11] --- ChanServ gives channel operator status to Kirben