pgCC-Error-Output

Hi, we’re getting this error when compiling C++ code with the pgCC compiler:

pgCC-Error-Output would overwrite input file

We’re not sure what compiler options to use to eliminate this message. We’re not sure why we get this error. Any ideas are appreciated.

Richard

Hi Richard,

What is your command line?

The compiler is complaining that the input file (.cpp, .i, .a, or .o file) is the same as the one it want to output to. For example if you have “pgcpp -o myfile.cpp myfile.cpp” where the “-o” specifies the output file name, you would get this error.

  • Mat