473,386 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

can't understand the compiler messages

Hi,how are you?
I have been studying C++ by myself, but recently I am having a real
problem. I am learning about the basic usage of a doubly linked list
using polymorphism. However, I have got the compiler errors which I
just can't understand what they mean. I searched the webs for any
clues on how to solve the problems. But I've never been able to find
one.
Now I am wondering if there is any website which tells people how to
understand what those compiler errors mean, and some general tips on
how to solve those compiler errors. If I can at least get to run this
program, I can use a debugger, but at this point, I can't even use a
debugger.
I am beginning to realize the difficulty of learning C++ all by
myself, so I am thinking about taking some online C++ lessons where I
can interactively ask questions on C++ with somebody who is
experienced in C++. Could anybody give me any suggestions?
I did not put the actual source code that I wrote because that is
rather a long code, and I did not know if putting such a thing would
be suitable in this newsgroup. However if anybody would consider
taking a look at my code, and give me any suggestion, I would gladly
put the actual code that is giving me a headache.
Thank you very much, and have a good day.
Jul 22 '05 #1
10 2224

"forgotten field" <tt*******@yahoo.com> wrote in message
news:87**************************@posting.google.c om...
Hi,how are you?
I have been studying C++ by myself, but recently I am having a real
problem. I am learning about the basic usage of a doubly linked list
using polymorphism.
That's a slightly strange combination. Are you using polymorphism to
implement a linked link? I don't think that's a good idea.
However, I have got the compiler errors which I
just can't understand what they mean. I searched the webs for any
clues on how to solve the problems. But I've never been able to find
one.
Now I am wondering if there is any website which tells people how to
understand what those compiler errors mean, and some general tips on
how to solve those compiler errors. If I can at least get to run this
program, I can use a debugger, but at this point, I can't even use a
debugger.
This place is the best I know for solving compiler problems, post compilable
code that generates the error and this group will solve it pretty quick.

Every compiler is different, abd everyones coding style is different
(including the typical mistakes they make). This means that two programmers
can work with the same compiler and still see completely different error
messages. It's really a matter of not taking the compiler error messages
literally, not paying any attention to the messages after to first two or
three, and gradually learning to interpret what the error messages mean for
you.
I am beginning to realize the difficulty of learning C++ all by
myself,
Absolutely. A good book helps though.
so I am thinking about taking some online C++ lessons where I
can interactively ask questions on C++ with somebody who is
experienced in C++. Could anybody give me any suggestions?
I don't know of any interactive place. But if you're prepared to slow down a
bit this place is as good as it gets.
I did not put the actual source code that I wrote because that is
rather a long code, and I did not know if putting such a thing would
be suitable in this newsgroup.
Long source code is not a good idea, although some people will be prepared
to read it. The best approach is to cut down the code until it is as small
as possible but still compilable and still contains the piece you don't
understand. I doesn't matter much that the code will no longer make any
sense. You may even learn something by going though this process.
However if anybody would consider
taking a look at my code, and give me any suggestion, I would gladly
put the actual code that is giving me a headache.
Thank you very much, and have a good day.


No problem. Very few people take the trouble to find out about this group
before posting for the first time.

john
Jul 22 '05 #2

"forgotten field" <tt*******@yahoo.com> wrote in message
news:87**************************@posting.google.c om...
Hi,how are you?
I have been studying C++ by myself, but recently I am having a real
problem. I am learning about the basic usage of a doubly linked list
using polymorphism.
That's a slightly strange combination. Are you using polymorphism to
implement a linked link? I don't think that's a good idea.
However, I have got the compiler errors which I
just can't understand what they mean. I searched the webs for any
clues on how to solve the problems. But I've never been able to find
one.
Now I am wondering if there is any website which tells people how to
understand what those compiler errors mean, and some general tips on
how to solve those compiler errors. If I can at least get to run this
program, I can use a debugger, but at this point, I can't even use a
debugger.
This place is the best I know for solving compiler problems, post compilable
code that generates the error and this group will solve it pretty quick.

Every compiler is different, abd everyones coding style is different
(including the typical mistakes they make). This means that two programmers
can work with the same compiler and still see completely different error
messages. It's really a matter of not taking the compiler error messages
literally, not paying any attention to the messages after to first two or
three, and gradually learning to interpret what the error messages mean for
you.
I am beginning to realize the difficulty of learning C++ all by
myself,
Absolutely. A good book helps though.
so I am thinking about taking some online C++ lessons where I
can interactively ask questions on C++ with somebody who is
experienced in C++. Could anybody give me any suggestions?
I don't know of any interactive place. But if you're prepared to slow down a
bit this place is as good as it gets.
I did not put the actual source code that I wrote because that is
rather a long code, and I did not know if putting such a thing would
be suitable in this newsgroup.
Long source code is not a good idea, although some people will be prepared
to read it. The best approach is to cut down the code until it is as small
as possible but still compilable and still contains the piece you don't
understand. I doesn't matter much that the code will no longer make any
sense. You may even learn something by going though this process.
However if anybody would consider
taking a look at my code, and give me any suggestion, I would gladly
put the actual code that is giving me a headache.
Thank you very much, and have a good day.


No problem. Very few people take the trouble to find out about this group
before posting for the first time.

john
Jul 22 '05 #3
> The best approach is to cut down the code until it is as small
as possible but still compilable and still contains the piece you don't
understand.


Since you are having trouble actually compiling I should say

The best approach is to cut down the code until it is as small
as possible but still produces the error message you don't
understand.

john
Jul 22 '05 #4
> The best approach is to cut down the code until it is as small
as possible but still compilable and still contains the piece you don't
understand.


Since you are having trouble actually compiling I should say

The best approach is to cut down the code until it is as small
as possible but still produces the error message you don't
understand.

john
Jul 22 '05 #5
> "forgotten field" <tt*******@yahoo.com> wrote in message

http://www.amazon.com/exec/obidos/tg...glance&s=books

Forgotten Field,
When I learned C++ I struggled for quite a while, went through quite a
few books until I came to Kris Jamsas Programmers Bible......I'm sure
there are plenty of others out there but I really like this one...you
get tons and tons of code with it, and it makes an excellent
transition from C (which I knew well) to C++. It also has a section on
C# to put it into context with everything else.....I'd highly
recommend you spend the money and at least get this book......

I too was not in a position where I could go to classes or learn from
a library of existing code at work so I had to learn from a book and
from the various sites on the web.

Also, check out sourceforge.net and codeproject.com.....there are
folks there who have posted source code for many applications both big
and small. If you have the patience to read the code you will learn
more about how to write C++.

Today it is more a case of sifting through large amounts of code to
try and find the few lines you are looking for, or asking the kind
folks here to assist.. :-)
Best Regards
Peter Nolan
Jul 22 '05 #6
> "forgotten field" <tt*******@yahoo.com> wrote in message

http://www.amazon.com/exec/obidos/tg...glance&s=books

Forgotten Field,
When I learned C++ I struggled for quite a while, went through quite a
few books until I came to Kris Jamsas Programmers Bible......I'm sure
there are plenty of others out there but I really like this one...you
get tons and tons of code with it, and it makes an excellent
transition from C (which I knew well) to C++. It also has a section on
C# to put it into context with everything else.....I'd highly
recommend you spend the money and at least get this book......

I too was not in a position where I could go to classes or learn from
a library of existing code at work so I had to learn from a book and
from the various sites on the web.

Also, check out sourceforge.net and codeproject.com.....there are
folks there who have posted source code for many applications both big
and small. If you have the patience to read the code you will learn
more about how to write C++.

Today it is more a case of sifting through large amounts of code to
try and find the few lines you are looking for, or asking the kind
folks here to assist.. :-)
Best Regards
Peter Nolan
Jul 22 '05 #7
Peter Nolan wrote:
"forgotten field" <tt*******@yahoo.com> wrote in message

http://www.amazon.com/exec/obidos/tg...glance&s=books

Forgotten Field,
When I learned C++ I struggled for quite a while, went through quite a
few books until I came to Kris Jamsas Programmers Bible......I'm sure
there are plenty of others out there but I really like this one...you
get tons and tons of code with it, and it makes an excellent
transition from C (which I knew well) to C++. It also has a section on
C# to put it into context with everything else.....I'd highly
recommend you spend the money and at least get this book......


Books combining C and C++ are a red flag for me. They usually don't
cover either very well. I checked the ACCU book reviews, and found that
this book's predecessor got a "Not Recommended" rating.

http://www.accu.org/cgi-bin/accu/rvo...&file=j001569a

Also, none of Jamsa's books that have been reviewed there have good ratings.

The ACCU book reviews carry a lot more weight than most reviews, because
they are done by people who know the subject matter, whereas most
reviews of "beginner" texts are reviewed by, well, beginners. Therefore
a book that explains things in a very clear way, with great examples,
will get good reviews on Amazon (for example) even if it's riddled with
factually incorrect information, errors, and bad advice. This doesn't
happen with the ACCU reviews.

For book recommendations, I would look at the alt.comp.lang.learn.c-c++ FAQ.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Jul 22 '05 #8
Peter Nolan wrote:
"forgotten field" <tt*******@yahoo.com> wrote in message

http://www.amazon.com/exec/obidos/tg...glance&s=books

Forgotten Field,
When I learned C++ I struggled for quite a while, went through quite a
few books until I came to Kris Jamsas Programmers Bible......I'm sure
there are plenty of others out there but I really like this one...you
get tons and tons of code with it, and it makes an excellent
transition from C (which I knew well) to C++. It also has a section on
C# to put it into context with everything else.....I'd highly
recommend you spend the money and at least get this book......


Books combining C and C++ are a red flag for me. They usually don't
cover either very well. I checked the ACCU book reviews, and found that
this book's predecessor got a "Not Recommended" rating.

http://www.accu.org/cgi-bin/accu/rvo...&file=j001569a

Also, none of Jamsa's books that have been reviewed there have good ratings.

The ACCU book reviews carry a lot more weight than most reviews, because
they are done by people who know the subject matter, whereas most
reviews of "beginner" texts are reviewed by, well, beginners. Therefore
a book that explains things in a very clear way, with great examples,
will get good reviews on Amazon (for example) even if it's riddled with
factually incorrect information, errors, and bad advice. This doesn't
happen with the ACCU reviews.

For book recommendations, I would look at the alt.comp.lang.learn.c-c++ FAQ.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Jul 22 '05 #9

"forgotten field" <tt*******@yahoo.com> wrote in message
news:87**************************@posting.google.c om...
Hi,how are you?
I have been studying C++ by myself, but recently I am having a real
problem. I am learning about the basic usage of a doubly linked list
using polymorphism. However, I have got the compiler errors which I
just can't understand what they mean. I searched the webs for any
clues on how to solve the problems. But I've never been able to find
one.
Now I am wondering if there is any website which tells people how to
understand what those compiler errors mean, and some general tips on
how to solve those compiler errors. If I can at least get to run this
program, I can use a debugger, but at this point, I can't even use a
debugger.


forgotten, that's a very good question IMO. Of course, each compiler is
different, so you have to study the documentation for your specific compiler
for help with the error messages. You should have it, or be able to
download it for free. That should help - a little. In general though,
there are certain problems that always seem to give obscure or confusing
error messages, and a list of common mistakes would probably be a help.
Unfortunately I'm not aware of any.

The most important thing I can suggest to you is to make small, incremental
changes. You start with

int main()
{
return 0;
}

Try to get that to compile, and then go from there. Don't make many changes
at once - just one at a time. If you make several, then go back to the last
working version and make one change and check the error. At that point, you
probably ought to be able to narrow down the problem with a very small
program that you can create and post here. Finally, don't confuse linker
messages with compiler messages! You might be having troubles with code
split across source files.

Jul 22 '05 #10

"forgotten field" <tt*******@yahoo.com> wrote in message
news:87**************************@posting.google.c om...
Hi,how are you?
I have been studying C++ by myself, but recently I am having a real
problem. I am learning about the basic usage of a doubly linked list
using polymorphism. However, I have got the compiler errors which I
just can't understand what they mean. I searched the webs for any
clues on how to solve the problems. But I've never been able to find
one.
Now I am wondering if there is any website which tells people how to
understand what those compiler errors mean, and some general tips on
how to solve those compiler errors. If I can at least get to run this
program, I can use a debugger, but at this point, I can't even use a
debugger.


forgotten, that's a very good question IMO. Of course, each compiler is
different, so you have to study the documentation for your specific compiler
for help with the error messages. You should have it, or be able to
download it for free. That should help - a little. In general though,
there are certain problems that always seem to give obscure or confusing
error messages, and a list of common mistakes would probably be a help.
Unfortunately I'm not aware of any.

The most important thing I can suggest to you is to make small, incremental
changes. You start with

int main()
{
return 0;
}

Try to get that to compile, and then go from there. Don't make many changes
at once - just one at a time. If you make several, then go back to the last
working version and make one change and check the error. At that point, you
probably ought to be able to narrow down the problem with a very small
program that you can create and post here. Finally, don't confuse linker
messages with compiler messages! You might be having troubles with code
split across source files.

Jul 22 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Patrick Coleman | last post by:
Hi, This may seem to be a basic question, but I keep getting the following error: main.cc:93: undefined reference to `AT_UrlParser::AT_UrlParser(char const*, std::basic_string<char,...
2
by: Jon Maz | last post by:
Hi All, To allow myself to make development changes directly on a remote server *without* having to compile on my local dev machine and then upload the dll's to remote, I have created a...
1
by: forgotten field | last post by:
Hi,how are you? I have been studying C++ by myself, but recently I am having a real problem. I am learning about the basic usage of a doubly linked list using polymorphism. However, I have got the...
102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
16
by: pj | last post by:
(Was originally, probably wrongly, posted to the vc subgroup.) (This doesn't appear to be a c# problem, but a problem with a bug in the Visual Studio c# compiler, but, any help will be welcome...)...
4
by: Jerry Camel | last post by:
Any insight here is greatly appreciated... (Eveything is in VB .NET) Here's the baisc app flow: ------------------------------------- Launch wrapper.exe: wrapper.exe registers for the...
7
by: aaragon | last post by:
Hi everyone, I have a simple question. I'm trying to make a macro in one file so I can use it in main.cpp. The idea is that I the user of my code has simple to type the macro definition to replace...
18
by: andreas.luethi | last post by:
Hi All Compile a our source with BM XL C/C++ Enterprise Edition V8.0 for AIX (Version: 08.00.0000.0000) produces a lot of Informational message like this: "aaalib.c", line 671.1: 1506-412 (I)...
6
by: David Mathog | last post by:
Do any of you happen to have links to compendiums (or heaven forbid, an actual manual) which maps compiler warnings and errors to examples of actual code problems? In this case I'm specifically...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.