![]() |
|
#1
|
|||
|
|||
What is "Ambigious symbol" ??*( a compilation error)Here is some code:
CPP / C++ / C Code:
Code:
What is the meaning of this "ambiguous symbol"? What can I do to get rid of this? By the way I have included the ones below: CPP / C++ / C Code:
All suggestions and assistances are greatly appreciated. |
|||
|
#2
|
|||
|
|||
|
Quote:
You didn't give us very much to work with. I have seen the "ambiguous symbol" messages when people included both <iostream> and <iostream.h> (Don't do this.) Sometimes this happens when people have #include <> stuff inside an #included file that someone else created. (Or that they created and then forgot what was in it.) If you can reduce the size of the program to a small enough number of lines to allow you to post the entire files (including all local include files that are used), and show the compile errors you got, maybe we could catch a clue. There's not much else I can do unless I can compile your code. Here's an example that gives me hundreds of C2872 errors: CPP / C++ / C Code:
The file "myheader.h" is this single line: CPP / C++ / C Code:
Here are the first few error messages: Code:
Look familiar? If I comment out the #include "myheader.h" it compiles and executes OK. Regards, Dave Last edited by davekw7x : 07-Jan-2005 at 17:38.
|
|
#3
|
|||
|
|||
|
Thanks davekw7x!
It has been solved as you said in one of the headers I had used <iostream.h> when I changed it all errors gone. Thanks :-o |
Recent GIDBlog
Running Linux Programs at Boot Time by gidnetwork
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 15:41 |
| Error C2146: syntax error : missing ',' before identifier 'C4' | mattchew008 | C++ Forum | 2 | 19-Dec-2004 06:06 |
| Can enum have same name as class? | crystalattice | C++ Forum | 3 | 08-Dec-2004 16:43 |
| "undefined symbol" error | crystalattice | C++ Forum | 3 | 27-Sep-2004 07:32 |
| compilation error | cameron | C++ Forum | 18 | 20-Feb-2004 00:41 |
Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The