Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6951755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:15:38+00:00 2026-05-27T14:15:38+00:00

Here is the code: #include <QtCore/QCoreApplication> #include <QProcess> #include <QProcessEnvironment> int main(int argc, char

  • 0

Here is the code:

#include <QtCore/QCoreApplication>
#include <QProcess>
#include <QProcessEnvironment>

int main(int argc, char *argv[])
{
    QProcessEnvironment env;

    // Environment variables required by CGI apps

    env.insert("QUERY_STRING",      url.encodedQuery());
    env.insert("REQUEST_URI",       url.toString());
    env.insert("REQUEST_METHOD",    "GET");
    env.insert("REMOTE_ADDR",       pSocket->peerAddress().toString());

    //==========

    QProcess process;
    process.setProcessEnvironment(env);
    process.start("php-cgi",QProcess::ReadWrite);

    process.write("<?php print_r($_GET); ?>");
    process.closeWriteChannel();

    process.waitForFinished();

    qDebug(process.readAll().data());

    return 0;
}

Qt Creator reports more than 14000 errors. Here is a small sample of them:

In file included from ../QProcess/main.cpp:2:
../QProcess/QProcess:1: error: stray ‘\177’ in program
../QProcess/QProcess:1: error: stray ‘\2’ in program
../QProcess/QProcess:1: error: stray ‘\1’ in program
../QProcess/QProcess:1: error: stray ‘\1’ in program
In file included from ../QProcess/main.cpp:2:
../QProcess/QProcess:1:8: warning: null character(s) ignored
../QProcess/QProcess:1: error: stray ‘\2’ in program
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:15:38+00:00Added an answer on May 27, 2026 at 2:15 pm

    Here is a simple example instance of this error. The contents of a file called new.cpp:

    #include <iostream>
    
    int main(int argc, char *argv[])
    {
      std::cout << "Brand new." << std::endl;
      return 0;
    }
    

    Now compile it:

    ppu32-g++ new.cpp -o new
    

    No problem. Let’s compile it again:

    ppu32-g++ new.cpp -o new
    

    OMG! Screen after screen of errors! Most of these errors look like this:

    ./new:1: error: stray '\177' in program
    

    The problem is that the compiler is trying to use the new file in the current directory, as the C++ standard library <new>; used by <iostream>. In fact any file in the current directory, named after a C++ standard library header, which is used in the code being compiled, will likely cause an error. That our problem file is an executable obfuscates the error messages.

    It doesn’t occur on all the gcc machines I’ve tried. ppu32-g++ 4.1.1 on PS3 Cell Fedora Linux certainly chokes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

#include <cstdio> #include <QtCore/QProcess> int main (int argc, char** argv) { // if we
I have this code: #include <iostream> #include <mp4.h> int main (int argc, char *
Here is my code #include <stdio.h> #include <string.h> #include <stdlib.h> int main() { char
Here is my code: #include <stdio.h> int main(void) { FILE *fp; unsigned int i;
Here's my code so far: #include<iostream> #include<string> #include<fstream> using namespace std; int main() {
here is code #include <iostream> #include <map> using namespace std; int main(){ map<int ,int>a;
here is code #include <iostream> #include <fstream> #include <cstring> using namespace std; int main()
Here is my code #include<iostream> #include<fstream> using namespace std; int main() { int* arr
Here is the code: #include<iostream> struct element{ char *ch; int j; element* next; };
Here's the code: #include <iostream> #include <string> #include <algorithm> using namespace std; int main()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.