|
-
October 25th, 2002, 09:42 AM
#1
Codewarrior 5 Query
I have a copy of Codewarrior which I use for C++ (as well as VC++ and Devc++).
When I work in console mode, I have no problem with STL, but if I try use say a std::string in a windows GUI app, I get a multitue of errors.
Code:
#include <windows.h>
#include <string>
int WINAPI WinMain( HINSTANCE hInst,
HINSTANCE hPreInst,
LPSTR lpszCmdLine,
int nCmdShow )
{
std::string str("Hello World");
MessageBox(NULL,str.c_str(),NULL,MB_OK);
return 0;
}
This works great on VC++, but chokes a painful death on Codewarrior 5. I get errors relating to algobase.h and limits.h
I have searched the web for a resource on bugs ect (I got the package free with a magazine in the UK, so I dont have Metroworks support).
Anyone with any ideas - I would welcome your comments.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|