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

Archive Today Yesterday Tomorrow
Pentagram homepage


[00:01:46] <-- wjp has left IRC ("Zzzz...")
[00:19:59] --> Kirben has joined #pentagram
[00:20:00] --- ChanServ gives channel operator status to Kirben
[00:34:16] <-- Dark-Star has left #pentagram ()
[01:06:35] --> Cashman has joined #pentagram
[01:09:32] <Cashman> I've been on this channel before - I have very little knowledge of c/c++ (basic programmer and scripting) I have been looking at what you guys have been up to and I have been working on a small thing or two of my own with the help of wjp, I have a question
[01:11:51] <Cashman> I see that ur code is mingw compatible on the win32 platform, I wish to compile cvs with dev c++ and I'm not using ur makefile because with dev its kind of confusion me at the moment
[01:13:42] <Cashman> I worked out how to get the common-types bit up and running with the external types info from ur makefile in the compiler options but!! I am stuck on #include<ostream> from the console.h file, is this ?? the mingw ostream.h file which actually points directly to stream.h -->that has comments within the file saying dont use for new code because this stuff is obsoulete, there is an include in there to go to iostream
[01:14:29] <Cashman> I am very confused now.. as I dont know what ostream to include, I cant get it right because I get pharse error with template<class _E, class _Tr = std::char_traits<_E> >
[01:14:44] <Cashman> ostream?? please help
[01:43:57] <Kirben> include the gcc ostream file.
[01:44:23] <Kirben> Should be in include\g++-v3
[02:02:28] <Cashman> (188 C:\Nick\cvs\misc\Console.h parse error before `<')
[02:02:29] <Cashman> template<class _E, class _Tr = std::char_traits<_E> >
[02:02:29] <Cashman> (193 C:\Nick\cvs\misc\Console.h destructors must be member functions)
[02:02:29] <Cashman> (193 C:\Nick\cvs\misc\Console.h virtual outside class declaration)
[02:02:29] <Cashman> virtual ~console_streambuf() { }
[02:02:57] <Cashman> -if it helps I am so far just trying to compile a small section of ur source
[02:06:24] <Kirben> odd, using gcc 2.95 or 3.x ?
[02:08:33] <Cashman> hmm ok yeah 2.95.3 bla bla - is there something very new in that part, I'll download
[02:09:07] <Cashman> its just that dev's last build came with 2.95 and I didnt think of updating the compiler
[02:10:08] <Kirben> only tried compiling under gcc 3.2 myself, sometime older gcc produces different errors.
[02:10:24] <Cashman> ok thanks
[02:11:06] <Kirben> Can get updates from https://sourceforge.net/project/showfiles.php?group_id=2435
[02:11:21] <Cashman> thankyou
[02:12:27] <Kirben> I recommend binutils 2.13, gcc 3.2, mingw-runtime 2.4 and win32api 2.2, avoid betas/release candidates
[02:13:16] <Cashman> ok thank's for that
[02:22:25] <Cashman> downloading crunch crunch.. thanx and I'll get back to do on what I find out.
[03:26:04] --> Kirben2 has joined #pentagram
[03:26:04] <-- Cashman has left IRC (Read error: 54 (Connection reset by peer))
[03:28:22] <-- Kirben has left IRC (Read error: 104 (Connection reset by peer))
[04:51:38] --> Cashman has joined #pentagram
[04:52:25] <Cashman> Thanks Kirben for that info some hrs ago. I looked through them headers etc. and that made sence - turns out the old release doesnt even have ostream
[04:52:42] <Cashman> 31 C:\Nick\cvs\misc\util.cpp `toupper' undeclared in namespace `std'
[04:52:43] <Cashman> #if (defined(BEOS) || defined(OPENBSD) || defined(CYGWIN) || defined(__MORPHOS__))
[04:52:43] <Cashman> if ((*X >= 'a') && (*X <= 'z')) *X -= 32;
[04:52:43] <Cashman> #else
[04:52:43] <Cashman> *X = std::toupper(*X);
[04:52:43] <Cashman> #endif
[04:53:45] <Cashman> *x=std::toupper(*X); <- so far all the code I have tried to compile does apart from utils.cpp becasue of this
[04:54:30] <Cashman> of course I'm still getting no ref to winmain becasue I'm just trying individual source and not linking all togeather
[04:58:43] <Kirben2> hmm that should work, as long as util.h is included.
[05:08:38] <Cashman> hmm I cant get that to work - is toupper upercase or somthing
[05:08:38] <Cashman> #ifndef _CPP_STRING
[05:08:38] <Cashman> #define _CPP_STRING 1
[05:08:38] <Cashman> #pragma GCC system_header
[05:08:38] <Cashman> #include <bits/c++config.h>
[05:08:39] <Cashman> #include <bits/stringfwd.h>
[05:08:41] <Cashman> #include <bits/char_traits.h>
[05:08:43] <Cashman> #include <memory> // For allocator.
[05:08:45] <Cashman> #include <bits/type_traits.h>
[05:08:47] <Cashman> #include <iosfwd> // For operators >>, <<, and getline decls.
[05:08:49] <Cashman> #include <bits/stl_iterator.h>
[05:08:51] <Cashman> #include <bits/stl_function.h> // For less
[05:08:53] <Cashman> #include <bits/basic_string.h>
[05:08:55] <Cashman> #ifdef _GLIBCPP_NO_TEMPLATE_EXPORT
[05:08:57] <Cashman> # include <algorithm> // for find_if
[05:08:59] <Cashman> # include <bits/basic_string.tcc>
[05:09:01] <Cashman> #endif
[05:09:03] <Cashman> #endif /* _CPP_STRING */
[05:09:21] <Cashman> the copy of the string header I have
[05:10:17] <Cashman> if I remark that line -->*X - std::toupper etc. its fine.
[05:10:56] <Cashman> remember still not compiling full source togeather yet
[05:11:25] <Kirben2> maybe try a using std::toupper; in utils.cpp
[05:14:05] <Cashman> yeah its (*x); somthing like that, the key thing is I think toupper no declared in namespace std, is there still possible a update problem as I had to shuffle some files around with the updates for dev
[05:15:48] <Kirben2> Should have all the required updates, maybe others will have more ideas when they drop by.
[05:16:10] <Cashman> thanks, I'll leave that for now anyways and continue to try compiling the rest
[05:16:32] <Cashman> I might have to have a close look at where all my files are for the dev install
[05:22:10] <Cashman> if your code compiled correctly and the toupper name is correct then is searching for files in the headers section's for toupper a good idea
[05:25:42] <Kirben2> I'm not sure exactly which header it is stored in.
[05:25:46] --- Kirben2 is now known as Kirben
[05:26:28] <Cashman> thats ok I'm trying to have a look my self - google search on the net
[05:27:49] <Kirben> looks like it is in ctype.h here.
[05:28:41] <Cashman> oh yeah its local of course yeah
[05:28:49] <Cashman> ctype
[05:30:00] <Cashman> Sorry just that my c/c++ knowledge is low and I'm fairly new with where things exist in different files
[05:31:22] <Kirben> I still new at C/C++ too, so not really the best to ask.
[05:31:36] --- DarkeZzz is now known as Darke
[05:32:35] <Darke> Hi.
[05:32:47] <Cashman> well good luck with ur learning Kirben, I have been programmming in all kinds of basic languages for many years so i'm not new to the fundermentals of a language dialect and the understanding of things, you the same?
[05:33:23] <Cashman> hey darke - got to go now, l8erz
[05:33:28] <-- Cashman has left IRC ()
[05:56:33] <-- Darke has left IRC (adams.freenode.net irc.freenode.net)
[05:56:35] --> Darke has joined #pentagram
[07:01:29] --> Servus has joined #pentagram
[08:47:07] <-- Servus has left IRC ()
[09:44:56] --> Cashman has joined #pentagram
[09:48:06] <Cashman> hey Kirben I'm comming along nicely with my dev c++ compile, q_math hmmmmd3 quake3 right - I'll have to try and look at that, whats the team using the structure math for
[09:48:17] <Cashman> I dont have qmath? is it on the cvs
[09:49:00] <Kirben> I don't know, Darke might be able to help.
[09:58:13] <Cashman> hey Kiren - how did you obtain q_math for md3_model.h - is it the quake3 mod package like quake2, heavy metal fakk and similar games
[10:01:49] <Darke> Erm... q_math.h? This is pentagram right? I know Colourless borrowed some stuff from the GPLed quake2 source, but everything should be in the cvs.
[10:04:26] <Cashman> MD3_Model.h --> #include "q_math.h"
[10:04:58] <Cashman> strange aye! do you not have a current cvs compile.
[10:05:26] <Kirben> MD3_Model.cpp/h isn't used at the moment
[10:05:51] <Cashman> ok thanks!
[10:14:42] <-- Darke has left IRC (adams.freenode.net irc.freenode.net)
[10:15:27] --> Darke has joined #pentagram
[10:20:36] * Darke blinkblinks and ohs, that explains things.
[10:28:44] <-- Kirben has left IRC (Excess Flood)
[10:28:50] --> Kirben has joined #pentagram
[10:29:23] <-- Kirben has left IRC (Excess Flood)
[10:29:32] --> Kirben has joined #pentagram
[11:01:49] <Cashman> hey kirben can a compiler spew if e.g. the u8 palette file doesnt exist -->become a undefined reference?
[11:02:51] <Cashman> no ok dont worry I found somthing
[11:21:27] <Cashman> hmm had a shapeflex undefined ref - thought I was right but missed a file from the cvs grr
[11:47:53] <-- Kirben has left IRC (Read error: 54 (Connection reset by peer))
[12:36:00] <Cashman> ??? you guys all compiling pentagram for linux right! how do I change pentagram.cpp file for winmain
[12:36:27] <Cashman> I get the rest to compile fine with no ref to winmain as the final problem
[12:36:30] <Darke> You don't need to.
[12:36:41] <Darke> You need to link it with SDL, it handles all of that.
[12:36:47] <Cashman> ? console compile
[12:37:03] <Cashman> I'm compiling with dev c++
[12:37:30] <Darke> What part of it are you compiling?
[12:37:40] <Cashman> the main exe
[12:37:41] <Darke> Erf. ALready said it.
[12:37:59] <Cashman> wait, trying somthing
[12:38:02] <Darke> You should just need to link it with libsdl.
[12:38:16] <Darke> That's all. Kirbin compiles all of this under windows with mingw.
[12:38:26] <Darke> s/Kirbin/Kirben/
[12:38:34] <Cashman> yeah I got all that.. I worked all that out
[12:40:04] <Cashman>
[12:40:04] <Cashman> [Linker error] undefined reference to `WinMain@16'
[12:41:56] <Darke> Which compiler are you using? gcc3.2/mingw? gcc/cygwin?
[12:42:32] <Cashman> gcc3.2/mingw with dev c++ as the ide \
[12:42:56] <Darke> The mingw makefile has these as the linking flags and the libraries to link with:
[12:42:58] <Darke> LFLAGS=-mwindows
[12:42:59] <Darke> LIBS=-lmingw32 $(SDL_LIBS) -lwinmm $(SDL_LIBS)
[12:43:15] <Darke> You'll want to make sure those are set in your devc++ project.
[12:43:53] <Darke> SDL_LIBS=-lSDL_mixer -lSDLmain -lSDL
[12:44:07] <Darke> And I don't think you need two of them too. *ponder*
[12:44:33] <Darke> Erf, actually it's: SDL_LIBS=-L./sdl/lib -lSDL_mixer -lSDLmain -lSDL
[12:45:04] <Cashman> yeah thanks - I know how to add the sdl libs etc. just the winmain prob! I'll look at that now
[12:45:05] <Cashman> thanks
[12:45:17] <Darke> No prob.
[12:48:04] --> Colourless has joined #Pentagram
[12:48:04] --- ChanServ gives channel operator status to Colourless
[12:50:51] * Darke points at Colourless. "This creature also compiles pentagram for windows, though he uses an icky MS compiler to do that. *grin*"
[12:51:43] <Cashman> hehe - yeah I have 2 other win compilers but I thought I'd make use of my dev install with mingw
[12:52:47] * Darke quickly hides before the dragon retaliates. *grin*
[12:54:45] <Cashman> hmm dev has its own make file and takes care of mwindows on compile flag with no link flag insite, you can add to the makefile but adding LFLAGS=-mwindows, comes up with no such file/dir
[12:54:47] <Cashman> hehe
[12:55:33] <Cashman>
[12:55:34] <Cashman> [Linker error] undefined reference to `WinMain@16'
[12:55:50] <Darke> What's the command line it's using to link?
[12:55:52] <Colourless> link with sdlmain
[12:55:55] <Cashman> does colourless ever see this, or has ever seen this -
[12:58:43] * Darke recieves a spam with the subject: "Email Marketers: Reduce spam complaints with optin lists", detailing it's got 5 million 'SAFE' email addresses that people have opt-ined to recieve spam on... is it just me, or does that sound dubious? *grin*
[13:09:54] <Cashman> Q: I get "Undefined reference to 'WinMain@16'"
[13:09:54] <Cashman> A: Under Visual C++, you need to link with SDLmain.lib. Under the gcc build environments including Dev-C++, you need to link with the output of "sdl-config --libs", which is usually: -lmingw32 -lSDLmain -lSDL -mwindows
[13:21:31] <Cashman> http://clg-net.com/ai/cprogramming.htm - good link on what we were talking about
[13:23:26] * Darke looks. Cool. Seems useful.
[13:29:59] * Darke considers that writing a compiler, whilst enduring a really nasty headache, may not be a victory of mind over matter but is certainly a victory for mind over common sense.
[13:37:35] <Cashman> -lmingw32 -lsdlmain -lsdl seams to be the correct order for the link with one prob, undefined ref to SDL_main - what the
[13:39:09] <Colourless> make sure that SDL is #included in the file with main()
[13:44:23] <Cashman> hmm yeah success at list! I grrr pulling hair out new there was somthing hmm after only ever trying a sdl example once with dev and mingw ages ago
[13:44:39] <Cashman> get this:- /* The application's main() function must be called with C linkage,
[13:44:39] <Cashman> and should be declared like this:
[13:44:39] <Cashman> #ifdef __cplusplus
[13:44:39] <Cashman> extern "C"
[13:44:39] <Cashman> #endif
[13:44:40] <Cashman> int main(int argc, char *argv[])
[13:44:42] <Cashman> {
[13:44:44] <Cashman> }
[13:44:46] <Cashman> */
[13:45:10] <Cashman> as well as that weblink before - for the linkage being in the right order
[13:53:17] <Cashman> nearly time for zzzzz - I'm in New Zealand
[14:11:15] * Darke decides that given he's a .auian, he really should be asleep before the .nzian beside him is, so hops off to do so. *grin* Night!
[14:11:36] --- Darke is now known as DarkeZzz
[14:12:55] <Colourless> i should go too
[14:12:56] <-- Colourless has left IRC ("casts invisibility")
[14:15:23] <Cashman> cashman hits the coverS!!!!!!!!!!!!!! l8erz to all taht are still alive, hmmm talking to no one as well all have gone to bed
[14:15:25] <-- Cashman has left IRC ()
[18:01:17] --> wjp has joined #pentagram
[18:01:17] --- ChanServ gives channel operator status to wjp
[19:26:11] <-- DarkeZzz has left IRC (adams.freenode.net irc.freenode.net)
[19:27:25] --> DarkeZzz has joined #pentagram
[19:27:25] --- ChanServ removes channel operator status from DarkeZzz
[19:50:46] <-- wjp has left IRC ("bbl")
[19:53:17] --> wjp has joined #pentagram
[19:53:18] --- ChanServ gives channel operator status to wjp
[23:10:22] --> Cashman has joined #pentagram
[23:28:27] <Cashman> hey wjp do you still have a link to that console screenshot of urs -ur tests
[23:30:48] <Cashman> I'm finially starting to learn a windows language - left qb4.5 basic behind now, hey I've been talking to kirben and drakke and have been experimenting with a few compilers for win32, I finially got the pentagram source to compile with dev c++ and mingw/gcc just to see what you guys have been up to.
[23:31:42] <Cashman> I've got no time to take real teaching classes in the language so I'll have to learn from online tuts, mymistakes and peoples help - oh thats how i learnt basic anyways
[23:35:26] <wjp> hi
[23:35:31] <wjp> console screenshot?
[23:36:00] <Cashman> hmm I'm sure I saw a pentagram.png link once?
[23:36:59] <wjp> http://www.math.leidenuniv.nl/~wpalenst/pentagram.png
[23:37:01] <wjp> that one?
[23:41:11] <Cashman> yeah nice! thats the one
[23:41:35] <wjp> the avatar/kith aren't really supposed to be there, btw :-)
[23:41:48] <Cashman> why are they?
[23:41:54] <wjp> just something I put in my local version of pentagram to test shape drawing
[23:42:07] <Cashman> oh ok
[23:42:26] <Cashman> config files.. what were you experimenting with
[23:42:30] <Cashman> ?3
[23:43:17] <wjp> I've been experimenting with config files a bit too, yes
[23:43:23] <wjp> oh, I see it still tries to load test.cfg
[23:43:40] <wjp> it doesn't actually do anything other than read and parse the config files, though
[23:44:00] <wjp> I should probably make it read some path information from pentagram.cfg
[23:45:29] <Cashman> yeah path information would be good - have you thought of a gamefile dir structure
[23:45:39] <Cashman> yet?
[23:45:45] <wjp> what do you mean?
[23:46:49] <Cashman> ur layout of the u8 files you are using - do you have a directory structure sorted, is it the same as ultima 8's?
[23:47:00] <Cashman> isnt that what you mean about pentagram.cfg?
[23:47:30] <wjp> I meant that pentagram.cfg should contain the path to the u8 data files
[23:48:16] <wjp> not sure yet what format/dir structure we want the data files
[23:48:37] <wjp> we may have some preprocessing, to get the u8 and crusader data files in the same format
[23:49:23] <Cashman> oh ok thanx for answering that, and yeah thats a idea and a half - you mean both formats intor ur own shapes format??
[23:49:42] <wjp> we'll probably use crusader's shape format
[23:49:56] <wjp> it's about the same as u8's but the headers are slightly different
[23:50:05] <Cashman> oh ok thats a nice plan - yeah true
[23:50:54] <wjp> hm, close to 1 am already. I should be going; have to get up early-ish tomorrow :/
[23:51:01] <wjp> bye
[23:51:09] <Cashman> ok bye!
[23:51:13] <-- wjp has left IRC ("Zzzz...")
[23:54:13] <Cashman> zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz! almost time to go have lunch and hmm work today, thinking about programming well at work otherwise go insane. (note: partime job at a supermarket)
[23:54:32] <-- Cashman has left IRC ()
[23:57:46] --> Kirben has joined #pentagram
[23:57:46] --- ChanServ gives channel operator status to Kirben