![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Programmer
Join Date: Dec 2004
Posts: 50
Rep Power: 4
![]() |
anyone?
|
|
|
|
|
|
#12 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Well, do you have a MYCLASS pointer named pMyClass in one of your source files? The extern reference allows the compiler to proceed with compiling your file because you're telling it there IS a pointer named pMyClass somewhere in one of the project's files. It believes you. When you get to the linker, the linker is going to demand that you told the truth and want to know where the hell you're hiding it.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|