2010-09-29 171 views
0

嗨,我正在與VS2010的qt工作,我得到這些連接錯誤,我無法弄清楚。它不像我沒有嘗試過任何東西......我已經正確鏈接了我的qwt庫路徑,並且還在其他依賴項中添加了qwt5。請幫助我,如果有人可以。等待回覆...qt VS2010 LNK2001,LNK 2019錯誤

Error 67 error LNK2001: unresolved external symbol 
    "public: static struct QMetaObject const QwtPlot::staticMetaObject" 
     ([email protected]@@[email protected]@B) 

Error 68 error LNK2019: unresolved external symbol 
    "void __cdecl listfiles( 
     class std::basic_string< 
      char, 
      struct std::char_traits<char>, 
      class std::allocator<char> 
     > &, 
     class std::list< 
      class std::basic_string< 
       char, 
       struct std::char_traits<char>, 
       class std::allocator<char> 
      >, 
      class std::allocator< 
       class std::basic_string< 
        char, 
        struct std::char_traits<char>, 
        class std::allocator<char> 
       > 
      > 
     > & 
    )" ([email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected] 
     @[email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected] 
     @[email protected]@[email protected][email protected][email protected]@[email protected]@[email protected] 
     @[email protected]@[email protected]@@[email protected]@[email protected]@Z) 
    referenced in function "private: void __thiscall 
     InferenceMgr::loaddirs(void)" ([email protected]@@AAEXXZ) 

Error 69 error LNK2001: unresolved external symbol 
    "protected: virtual void __thiscall uLeapStdin::run(void)" 
     ([email protected]@@MAEXXZ) 

Error 70 error LNK1120: 3 unresolved externals 

回答

0

這看起來像是它可能是由moc編譯器生成的文件的問題。嘗試一個乾淨的和構建。確保正在生成moc文件,並且目標文件最終位於鏈接器可以找到它們的位置。

0

關於第一個錯誤。似乎定義預處理器「QWT_DLL」解決了這個問題。