Results 1 to 3 of 3

Thread: Permission denied error during linking

  1. #1
    Join Date
    Apr 2006
    Posts
    10
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: problem with designer

    hai ,

    what's my problem is close one form and open another after some time interval.
    i have written following code as follows.
    Qt Code:
    1. #include "ui_Screen3.h"
    2. #include "ui_Screen5.h"
    3. #include <QApplication>
    4. #include <QObject>
    5. #include <QTableWidgetItem>
    6. #include <QTableWidget>
    7. #include <QTimer>
    8.  
    9. int main(int argc, char *argv[])
    10. {
    11. QApplication app(argc, argv);
    12. QWidget *window = new QWidget;
    13. QWidget *window1 = new QWidget;
    14. QTimer *timer = new QTimer;
    15. Ui::Form1 ui;
    16. Ui::Form ui1;
    17. ui.setupUi(window);
    18. ui1.setupUi(window1);
    19.  
    20. window1->show();
    21.  
    22.  
    23. QObject::connect(timer, SIGNAL(timeout()), window1, SLOT(hide()));
    24. timer->start(1000);
    25. QObject::connect(window1, SIGNAL(hide()), window, SLOT(show()));
    26. return app.exec();
    27. }
    To copy to clipboard, switch view to plain text mode 

    i was gettting following error
    Qt Code:
    1. C:\Qt\new>make
    2. mingw32-make -f Makefile.Release
    3. mingw32-make[1]: Entering directory `C:/Qt/new'
    4. g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
    5. LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
    6. -I"C:/Qt/4.1.1/include/QtCore" -I"C:/Qt/4.1.1/include/QtGui" -I"C:/Qt/4.1.1/inc
    7. lude" -I"." -I"C:/Qt/4.1.1/include/ActiveQt" -I"release" -I"." -I"C:/Qt/4.1.1/mk
    8. specs/win32-g++" -o release\main.o main.cpp
    9. main.cpp:33:6: warning: no newline at end of file
    10. g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runt
    11. ime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows -o "release\new.exe" relea
    12. se\main.o -L"C:\Qt\4.1.1\lib" -lmingw32 -lqtmain -lQtGui4 -lQtCore4
    13. C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot ope
    14. n output file release\new.exe: Permission denied
    15. collect2: ld returned 1 exit status
    16. mingw32-make[1]: *** [release\new.exe] Error 1
    17. mingw32-make[1]: Leaving directory `C:/Qt/new'
    18. mingw32-make: *** [release] Error 2
    To copy to clipboard, switch view to plain text mode 


    please help give me any clue to go forward.

    bye
    basha

  2. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: problem with designer

    The error says you have a permission problem. Check that you don't already have a release\new.exe file, and that if you do, it is not read-only.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Permission denied error during linking

    Make sure that your application isn't running when you link a new version.

Similar Threads

  1. Permission denied
    By lixo1 in forum Qt Tools
    Replies: 4
    Last Post: 27th March 2009, 10:01
  2. exe permission denied
    By phillip_Qt in forum Qt Programming
    Replies: 1
    Last Post: 30th October 2007, 08:47
  3. Permission denied
    By thomasjoy in forum Qt Programming
    Replies: 1
    Last Post: 17th October 2007, 21:37
  4. QFtp and Permission Denied
    By J-jayz-Z in forum Qt Programming
    Replies: 2
    Last Post: 22nd August 2007, 17:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.