c++/7861: Finds executables instead of standard headers?

Paul paulf.johnson@ukonline.co.uk
Sun Feb 23 21:55:00 GMT 2003


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7861

Hi,

/* test.cpp */

#include <string>
#include <iostream>

using namespace std;

int main()
{
  string hi = "Paul";
  cout << "Hello " << hi << endl;
}

g++ test.cpp -o string

Compiles fine.

Change "Paul" to "Phil" (say), recompile and watch the fireworks!

TTFN

Paul



More information about the Gcc-bugs mailing list