gcc linker error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All ,
I use MinGW32 with 3.3.1 gcc
and build Win32 DLL

What you think about this construction:

Class MyVariant have got:
- MyVariant& MyVariant::operator=(const MyVariant& var)

exist some another class , where MyVariant is - father (teplated classes)

template<enumFieldType typeID>
class TMyVariant : public MyVariant
....
...
typedef TMyVariant<eFieldType_Float>       CMyFloatVariant
All this stuff compiler,builded and resides in some DLL

----------------------------------------------------------------------------
-------------------------------------
and question:
Why contruction

MyVariant  myvar(....);
myvar = CMyFloatVariant(tag, poleVar->fltVal);

compiled ,BUT causing Linker error
 undefined reference to `MyVariant::operator=(MyVariant const&)

when I build this DLL with DLL , where is defined MyVariant and operator's



Best Regards


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux