gcc linker error
Aleksei Andevis
aleksei@andevis.ee
Wed Feb 18 13:09:00 GMT 2004
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
More information about the Gcc-help
mailing list