Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. Problema a compilare classi in qt
Forum Updated to NodeBB v4.3 + New Features

Problema a compilare classi in qt

Scheduled Pinned Locked Moved Italian
2 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    murabio
    wrote on last edited by
    #1

    Ogni volta che creo una classe mi ritornano 4 link error, ad esempio:

    1>AddressBook.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall AddressBook::metaObject(void)const " (?metaObject@AddressBook@@UBEPBUQMetaObject@@XZ)
    1>AddressBook.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall AddressBook::qt_metacast(char const *)" (?qt_metacast@AddressBook@@UAEPAXPBD@Z)
    1>AddressBook.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall AddressBook::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@AddressBook@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
    1>AddressBook.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const AddressBook::staticMetaObject" (?staticMetaObject@AddressBook@@2UQMetaObject@@B)
    1>C:\Users\FABIO2\Documents\Visual Studio 2010\Projects\media_player_1\Debug\media_player_1.exe : fatal error LNK1120: 4 unresolved externals

    Qualcuno sa il perchè?

    1 Reply Last reply
    0
    • H Offline
      H Offline
      HarrySatt
      wrote on last edited by
      #2

      I think you may have forgotten to include QAxContainer.lib in your Additional Dependencies in your link properties of the project.
      regards, Harald.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved