Log in

View Full Version : OT: Programming


Zarix
June 27th, 2002, 04:42 PM
I have been trying to learn programming for some time. I can already do some easy stuff. I often get error Messages but none of them can be compared to this one. Here is the link. (http://koti.mbnet.fi/lehtkl/error01.jpg) http://forum.shrapnelgames.com/images/icons/confused.gif I guess that error won't be easy to deal with.

Suicide Junkie
June 27th, 2002, 04:52 PM
Have you included every header and library you use in that file?

Includes don't daisy chain very well. (A > B > C != A > C)

It also occurs to me that there may be too many underlines at the beginning. Try removing the first underline, and see how it goes.

BTW, does "builtin_vec_new" appear somewhere in your code, or is this a really mysterious thing?

[ June 27, 2002, 16:01: Message edited by: Suicide Junkie ]

Zarix
June 27th, 2002, 05:02 PM
Everything should be there. The error is from an example program that came with a GUI library. I haven't changed it at all. I think it could be because I am using a beta Version compiler. I'll probably have to get the latest official Version and try again.

[ June 27, 2002, 16:10: Message edited by: Zarix ]

Zarix
June 27th, 2002, 05:08 PM
I don't have a clue where the "builtin_vec_new" comes from. Even if I knew it wouldn't help much because there was over hundred error Messages before that.

Lemmy
June 27th, 2002, 05:48 PM
what language is this?
C++? and what editor/compiler are you using?

and i do love that Last line:
"There must be something terribly wrong with your code. Please fix it."

the word "duh" comes to mind..
http://forum.shrapnelgames.com/images/icons/icon10.gif

Jmenschenfresser
June 27th, 2002, 09:56 PM
Please fix it. <font size="2" face="Verdana, Helvetica, sans-serif">Who says computers don't care.

Zarix
June 28th, 2002, 11:26 AM
Yeah, it's C++. The editor is Dev-C++ and compiler is Mingw. Actually the compiler isn't a beta but the editor is.

Jmenschenfresser
June 28th, 2002, 02:43 PM
I've used Dev-C++ before, but I didn't know it was a beta. Just thought it was a free compiler.

Zarix
June 28th, 2002, 02:53 PM
Dev-C++ is a free and open source. I'm using Version 5 with is still a beta. Version 4 is the latest official Version.

DavidG
June 29th, 2002, 04:48 AM
Gees wish I could help but thanks for that Last line "There must be something terribly wrong with your code. Please fix it." That's just freeking hillareous!!!! http://forum.shrapnelgames.com/images/icons/icon10.gif

raynor
July 3rd, 2002, 09:08 AM
Several years ago, I remember experimenting with a library of C++ code called the Standard Template Library which implements code for a container class called a Vector. At that time, I don't believe most compilers automatically supported the Standard Template Library and you had to separately download the STL and include it in your library path when you built your programs.

I haven't done anything with C++ recently. But I thought they added the Standard Template Library to the official language specification. But again, I could be wrong since I've been using other Languages including Borland Delphi more recently.

If I were you, I would do google searches using the name of the compiler with phrases such as either STL or Standard Template Library and see if the compiler supports the STL. Alternatively, you could do internet searches for the STL and see if it is possible to download it and such.

Mysterial
July 3rd, 2002, 09:46 PM
Originally posted by raynor:

I haven't done anything with C++ recently. But I thought they added the Standard Template Library to the official language specification. But again, I could be wrong since I've been using other Languages including Borland Delphi more recently.
<font size="2" face="Verdana, Helvetica, sans-serif">I think they did add it to the latest Version of GCC (Versions 3.0 and later) However, I don't know if it was added to mingw or not.

Zarix: I do suggest trying the latest official Version (Version 4). It is possible that the beta is using a different Version of mingw, and if that different Version of mingw is based on a Version of GCC &gt; 3.0, it's buggy to all hell, which could explain the weird errors.

If you really don't want to switch Versions, send me or post somewhere the code to the program and tell what libraries it uses and I'll take a look.