:-1: error: cannot open output file debug\hostname.exe: Permission denied
General and Desktop
1
Posts
1
Posters
1.2k
Views
1
Watching
-
wrote on 30 Nov 2014, 07:12 last edited by
@#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/1