Проблема в следующем, ни как не могу слинковать код. В qtcreator есть библиотека libDuiEditor. Я ее подключаю к своему проекту. Код компилируется, но линковщик в упор не хочет видеть этот модуль.
undefined reference to `DuiEditor::Internal::DuiEditorPlugin::DuiEditorPlugin()
Может я чего-то не понимаю ?
DuiEditor::Internal::DuiEditorPlugin *plugin =new DuiEditor::Internal::DuiEditorPlugin();
Вот код самого модуля
#ifndef DUIEDITORPLUGIN_H
#define DUIEDITORPLUGIN_H
#include <extensionsystem/iplugin.h>
namespace TextEditor {
class TextFileWizard;
class TextEditorActionHandler;
} // namespace TextEditor
namespace DuiEditor {
namespace Internal {
class DuiEditorFactory;
class DuiCodeCompletion;
class ScriptEditor;
class DuiEditorPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
public:
DuiEditorPlugin();
virtual ~DuiEditorPlugin();
// IPlugin
bool initialize(const QStringList &arguments, QString *errorMessage = 0);
void extensionsInitialized();
static DuiEditorPlugin *instance()
{ return m_instance; }
void initializeEditor(ScriptEditor *editor);
private:
void registerActions();
static DuiEditorPlugin *m_instance;
typedef QList<int> Context;
Context m_context;
Context m_scriptcontext;
TextEditor::TextFileWizard *m_wizard;
DuiEditorFactory *m_editor;
TextEditor::TextEditorActionHandler *m_actionHandler;
DuiCodeCompletion *m_completion;
};
} // namespace Internal
} // namespace DuiEditor
#endif // DUIEDITORPLUGIN_H