Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. :-1: error: cannot open output file debug\hostname.exe: Permission denied
Servers for Qt installer are currently down

:-1: error: cannot open output file debug\hostname.exe: Permission denied

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k 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.
  • K Offline
    K Offline
    krustasia
    wrote on 30 Nov 2014, 07:12 last edited by
    #1

    @#include <QString>
    #include <QDebug>

    int main()
    {
    QString name = qgetenv("USER");
    if (name.isEmpty())
    name = qgetenv("USERNAME");
    qDebug() << name;
    return 0;
    }@

    I'm trying to learn getting environment variables from examples found on internet but this one seemed to have permission related issue.

    How do I know the right permission needed to be able to get the right output?

    The project name is hostname

    1 Reply Last reply
    0

    1/1

    30 Nov 2014, 07:12

    • Login

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