From: Earnie B. <ear...@ya...> - 2002-09-25 12:51:21
|
Add `using namespace std;' to the global space. Earnie. Lorne Easton wrote: > > Earnie, > > Just downloaded the new version of Mingw (2.0.3).. Good work on the release.. Are there any breaking changes for this release? Perhaps a problem with the linker? I will summarise.. > > ----------------------------------------------------------------------------------------------- > > PATH=C:\Program Files\Dell\OpenManage\Drac\client;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\perl\bin;C:\Program Files\Dell\OpenManage\ArrayManager;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;c:\Program Files\Symantec\pcAnywhere\;c:\mingw\bin;c:\mingw\lib;C:\Program Files\Microsoft Platform SDK\Bin\;C:\Program Files\Microsoft Platform SDK\Bin\WinNT > > ----------------------------------------------------------------------------------------------- > > //broken.cpp > > #include <string> > > int main(void) { > > string Test; > > } > > ----------------------------------------------------------------------------------------------- > > C:\projects\c++\win32_wrapper_classes\ping>c++ broken.cpp -o test.exe > broken.cpp: In function `int main()': > broken.cpp:5: `string' undeclared (first use this function) > broken.cpp:5: (Each undeclared identifier is reported only once for each > function it appears in.) > broken.cpp:5: parse error before `;' token > > ----------------------------------------------------------------------------------------------- > > Thanks in advance for your help. I hope this isn't a stupid question; but code that I have been working on with the old version that compiled clean would not compile with 2.0.3... > > Regards, > Lorne |