Zalwou06
12th September 2012, 15:00
Hi all,
I am developing a huge application that use a lot of different components in separate dll
each component have its own namespace.
when I use the following exemple of code I have many link errors
namespace FIRST
{
class MyClass : public QObject
{
Q_OBJECT
...
}
}
namespace SECOND
{
class MyClass : public QObject
{
Q_OBJECT
...
}
}
then while linking using the generated moc files, the link is messed up and SECOND::MyClass try to link with FIRST::MyClass.
Is that a limitation of the moc process as we can't use same class name in different namespaces ?
Thank you in advance for your answers
zal
I am developing a huge application that use a lot of different components in separate dll
each component have its own namespace.
when I use the following exemple of code I have many link errors
namespace FIRST
{
class MyClass : public QObject
{
Q_OBJECT
...
}
}
namespace SECOND
{
class MyClass : public QObject
{
Q_OBJECT
...
}
}
then while linking using the generated moc files, the link is messed up and SECOND::MyClass try to link with FIRST::MyClass.
Is that a limitation of the moc process as we can't use same class name in different namespaces ?
Thank you in advance for your answers
zal