From: Lorne E. <lo...@gl...> - 2002-09-26 04:07:42
|
Hey all, With "iphlpapi.h" : this header assumes "windef.h" : eg: #include <windows.h> #include <iphlpapi.h> is ok: #include <iphlpapi.h> #include <windows.h> is not. It expects previous declaration of DWORD from "windef.h". Should = this be included in iphlpapi.h previous to "iprtrmib.h" which uses the = DWORD type, or is it common sense to declare windows.h (or windef.h) = before you include any other headers? Regards, Lorne -----Original Message----- From: Luke Dunstan [mailto:cod...@ho...] Sent: Thursday, September 26, 2002 12:24 PM To: Lorne Easton Cc: min...@li... Subject: Re: [Mingw-users] Re: Since 'string' is in the 'std' namespace, you must use 'std::string' to access it, or put 'using std::string;' or 'using namespace std;' earlier = in your source file. The old compiler did not require this because it was = not C++ Standard compliant. Luke Dunstan ----- Original Message ----- From: "Earnie Boyd" <ear...@ya...> To: "Lorne Easton" <lo...@gl...> Cc: <min...@li...> Sent: Wednesday, September 25, 2002 8:47 PM Subject: [Mingw-users] Re: > Please use the mingw-users list. You'll get better coverage for your > question. > > 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=3DC:\Program Files\Dell\OpenManage\Drac\client;C:\WINNT\system32;C:\WINNT;C:\WINNT\Sys= tem 32\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 |