473,887 Members | 2,304 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2329

"forgotten field" <tt*******@yaho o.com> wrote in message
news:87******** *************** ***@posting.goo gle.com...
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*******@yaho o.com> wrote in message
news:87******** *************** ***@posting.goo gle.com...
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*******@yaho o.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*******@yaho o.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*******@yaho o.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.l earn.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*******@yaho o.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.l earn.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*******@yaho o.com> wrote in message
news:87******** *************** ***@posting.goo gle.com...
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

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

Similar topics

5
1105
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, std::char_traits<char>, std::allocator<char> >*)' line 93: AT_UrlParser qservice(service); I'm including a custom header file that defines AT_UrlParser.
2
1921
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 RunBatch.aspx on the remote which calls a batch file (myBuild.bat) on the same machine, and this batch file executes the necessary command-line compiler instructions to recompile (code below). So far (fingers crossed) it seems to be working. The only...
1
257
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 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...
102
5786
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 can't tell where a bracket is missing.... a few weeks have past, I requested a feature for the delphi ide/editor "automatic identation of code in begin/end statements etc" and today when I woke up I suddenly released a very simple solution for this...
16
2863
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...) Oh, I forgot to list the error messages; I would be delighted if someone could explain how to deduce which line number in which file is the one that the VC compiler cannot handle. Actually I'm using C#, but the only post I could find about...
4
1115
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 SessionEnding system event wrapper.exe stores a pointer to its thread in MainThread wrapper.exe declares, withevents, a process variable: np wrapper.exe does some basic maintenance wrapper.exe populates np with process info and sets
7
13111
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 a more complicated code. Something like the following: // file.h #define OBJECTIVE template <class T\ void operator()(T& chrom_,double* fitness_); // file main.cpp
18
2969
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) Referenced variable "n", which was not initialized in its declaration. n is a variable in procedure an is assigned before used. Compiling the
6
2278
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 looking for one for gcc. The general problem is of course that the compiler messages must be short, and that tends to make them so cryptic that it isn't always immediately obvious what the problem is. It almost makes me long for the days when the...
0
11173
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10771
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10877
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10434
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7988
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5810
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6011
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4239
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3245
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.