namespace bug

Will Mason dblewe@ibm.net
Sun Oct 4 08:40:00 GMT 1998


Here's a header file that I'm using:

#include <string>

using namespace std;

namespace OSHelper
{
   string dummyFunction();
   string echoer();
   string getEnvironmentValue(const char* var);
   string deleter();
};


If I omit dummyFunction(), then whichever of the other functions that I
declare first in the namespace will not be found by the linker.
Likewise, if I try to use dummyFunction(), then it is not found by the
linker.

Thank you for looking into this, and thank you very, very much for
finally adding namespace support!

Will Mason




More information about the Gcc-bugs mailing list