have projects on Google drive. Can't open them on other computer.



  • So I have my project files on google drive and I would like to access them from different computers. When I tried to do it I'm getting errors

    moc_dialog.obj:-1: error: LNK2019: unresolved external symbol "private: void __cdecl Dialog::on_tableView_activated(class QModelIndex const &)" (?on_tableView_activated@Dialog@@AEAAXAEBVQModelIndex@@@Z) referenced in function "public: virtual int __cdecl Dialog::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@Dialog@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)

    release\Pocco_Interface_Dialog.exe:-1: error: LNK1120: 1 unresolved externals

    I also can no longer run the program on the computer it was originally created on.


  • Lifetime Qt Champion

    Hi,

    To understand the situation correctly: your project is located in your Google Drive folder and you are trying to build it in there from different computers, right ? Are you always using the same OS ? Doing clean builds ?


  • Moderators

    Hi,

    @Rample said:

    So I have my project files on google drive and I would like to access them from different computers.

    There are some items you must not share between different computers.

    When you change PCs, make sure you:

    • Delete your *.pro.user file
    • Delete your "build" folder

    Anyway, Google Drive is not designed for sharing code. I recommend using source code control instead, like BitBucket or GitHUb -- GitHub is more popular, but BitBucket lets you keep your project private.



  • @SGaist What does "clean builds" refer to exactly? Other than that yes.


  • Lifetime Qt Champion

    The same thing as @JKSH suggested: delete the build folder.

    However, @JKSH has a very good point that I forgot to mention: Google Drive is not meant for such a task, using git/mercurial/etc. will be a better way to handle your code between different machines.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.