my compiler doesn't understand string, need new compiler

Page 3 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
-that GNU compiler thing that is on the CD that came with that book DOES NOT WORK and there's no more instructions than whatcame in the documentation itself and in the book. if it doesn't work then it does indeed suck

Because we all know there's no way you could find any information about it on the Internet...

-i did look into this, C++ is the big one, almost anything youcan think of is C++, if you want to help develop mods and plugins for games you better know C++

Almost everything on my computer right now is C, not C++. Games and 'everything you can think of' aren't synonymous. C++ is popular and powerfull, but noone said it was a good starting language.

-spreading across languages is a GOOD thing but only if you do it systematically. by that i mean do one language until you know it very well then go to the next instead of just going half fast and both until you hopeful know wtf you are doing in either language at the end.

Maybe you should work on your reading comprehension skills. That's what I meant, I never said for you to learn 1 language and only 1 language ever, it just seems that you're trying to bite off more than you can chew. And at this point you're spending way too much time on this thread and not enough on your programming projects.

And frankly learning a new language isn't hard, learning to program is. Once you have a solid understanding of programming, learning a new language's syntax is easy.
 

CodeJockey

Member
May 1, 2001
177
0
0
Chooco,

The most likely cause of your problems is that you either didn't unzip the files into the proper directories, or you didn't preserve the long filenames when you unzipped them.

From the documentation (Readme1st.doc):

2. Unzip all the zip files from that directory, preserving the
directory structure. For example:

pkunzip -d djdev203
or
unzip32 djdev203

On Windows 9X, use an unzip program which supports long file names.
Latest versions of InfoZip's UnZip and PKUnZip, as well as WinZip,
all support long file names. unzip32.exe, available from the DJGPP
sites, also supports long file names. One way to make sure you have
preserved long file names is to look for a file include/sys/sysmacros.h:
if you see only sysmacro.h instead, your unzip program does NOT
support long filenames, and you need to find another one.

Check to see if you have the C:\DJGPP\INCLUDE\SYS\SYSMACROS.H file on your system...

The next most likely problem is a typo in the lines you added to the AUTOEXEC.BAT file.

Either situation could explain the "Environment variable set incorrectly" error message you see.


Also, if you want C++ support, use gxx to compile your code. gcc is only for C code, and hasn't got a chance of understanding what a string is.
 

DT4K

Diamond Member
Jan 21, 2002
6,944
3
81
This guy makes me LMFAO. He posted on another topic about which programming language was best to learn. And he started ranting about how .net sucked because the C# compiler was buggy and didn't work right.

Chooco,
Does the HTML you did work? Or does IE just not understand your HTML even though you wrote it correctly? Maybe the HTML compiler is buggy too? (yea, I know there's no compiler, that was a joke)

THE COMPILERS WORK. It's your code that doesn't, or something in the way you have things set up. There is a ton of help available on the web. Try Tek-Tips. If you ask a programming question there, you will almost always get very good answers very quickly. But like others stated, ask for help getting something to work, don't start ranting about how it's your compiler's fault that your code won't work.

VB is a very useful language (although I agree that it is not good for learning good programming technique.) It is used in a ton of businesses for their in-house development for several reasons. It doesn't take a lot of time to learn how to do simple stuff. It protects you from many of the bad things that C allows you to do. The IDE practically writes code for you. It is the easiest and fastest way to build GUI's. And it has all the features and power it needs for most business applications.

If you want to stick with C++, have some patience, take advantage of all the help on the web, and don't blame the compiler.