I have a strange linking problem using VS2008, Qt4.5.1 and qt-vs-addin 1.0.1.
I import the .pro file to a .vcproj, and it builds fine.
I edit some source files and build again, and now I get things like this:
Qt Code:
  1. Generating Code...
  2. Compiling resources...
  3. Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
  4. Copyright (C) Microsoft Corporation. All rights reserved.
  5. Linking...
  6. LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
  7. PAMSapp.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall PAMSApp::metaObject(void)const " (?metaObject@PAMSApp@@UBEPBUQMetaObject@@XZ)
  8. PAMSapp.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall PAMSApp::qt_metacast(char const *)" (?qt_metacast@PAMSApp@@UAEPAXPBD@Z)
  9. PAMSapp.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall PAMSApp::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@PAMSApp@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
  10. PAMSapp.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const PAMSApp::staticMetaObject" (?staticMetaObject@PAMSApp@@2UQMetaObject@@B)
  11. serialport.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall SerialPort::metaObject(void)const " (?metaObject@SerialPort@@UBEPBUQMetaObject@@XZ)
  12. serialport.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall SerialPort::qt_metacast(char const *)" (?qt_metacast@SerialPort@@UAEPAXPBD@Z)
  13. serialport.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall SerialPort::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@SerialPort@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
  14. settings.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall CorrectionPane::metaObject(void)const " (?metaObject@CorrectionPane@@UBEPBUQMetaObject@@XZ)
  15. settings.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall CorrectionPane::qt_metacast(char const *)" (?qt_metacast@CorrectionPane@@UAEPAXPBD@Z)
  16. settings.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CorrectionPane::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@CorrectionPane@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
  17. settings.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall PAMS_Settings::metaObject(void)const " (?metaObject@PAMS_Settings@@UBEPBUQMetaObject@@XZ)
  18. settings.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall PAMS_Settings::qt_metacast(char const *)" (?qt_metacast@PAMS_Settings@@UAEPAXPBD@Z)
  19. settings.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall PAMS_Settings::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@PAMS_Settings@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
  20. debug\PAMS3.exe : fatal error LNK1120: 13 unresolved externals
  21. Build log was saved at "file://c:\Documents and Settings\bnilsson\My Documents\Visual Studio 2008\Projects\QtPAMS\PAMS3016\debug\BuildLog.htm"
  22. PAMS3 - 14 error(s), 5 warning(s)
  23. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
To copy to clipboard, switch view to plain text mode 
It is the first time I see anything like this, and I don't know what to make of it.
The only thing that I have done new is installing Qt4.5.1 and the qt-vs-addin.
Any clues would be appreciated.

BN