Vs-addin doesn't generate moc's
Hello. I'm using Visual Studio 2010 with vs-addin-1.2.2. I suppose, that addin should generate moc-files automatically when finds Q_OBJECT macro. But I added simple class and got linker errors. Moc-files were generated properly with other classes early, but not now. What's wrong? Is there any way to force generating?
QwtFFT.h
Code:
#pragma once
#include "qwt_plot.h"
class QwtFFT :
{
Q_OBJECT
public:
~QwtFFT(void);
};
QwtFFT.c
Code:
#include "QwtFFT.h"
{
}
QwtFFT::~QwtFFT(void)
{
}
QWT_DLL defined. Thanks
Re: Vs-addin doesn't generate moc's
Well, I found a way to generate moc manually (set Custom Build Toll in header file properties, then add moc_* to generated files), but still have no idea why automatic generation was broken
Re: Vs-addin doesn't generate moc's
Solution re-creation solved the problem
Re: Vs-addin doesn't generate moc's
It sometimes happens to me too. I don't know why, but the quickest way I found to force addin to re-generate the moc files is this:
-delete the Q_OBJECT macro (eg. by shift+delete in that line)
-save (ctrl+s)
-add back the macro (eg. ctrl+z)
-save (ctrl+s)
4 keystrokes and the moc files are back. No need to recreate the whole solution ;)