151
Developer's Corner / Re: Problems with LCC-WIN32 compiler produced outputs
« on: January 24, 2007, 04:04 AM »
I reproduced the scenario copying and pasting your source code. When I run c:\test.exe it throws an exception:
I doesn't matter which option I use to compile it.
If I change the code to:
then the program executes but freezes the command prompt...
Finally if I use -ansic or -pedantic switch I get a lot of warnings about obsolete code conventions. I'm not a C++ programmer, so that may be an issue here, but I can't tell you why :o
C:\WINNT\system32\cmd.exe - c:\test.exe
The NTVDM-CPU has encountered an illegal instruction.
CS: 0728 IP:010c OP:0f 00 00 00 00 Click Close to exit the application
The NTVDM-CPU has encountered an illegal instruction.
CS: 0728 IP:010c OP:0f 00 00 00 00 Click Close to exit the application
I doesn't matter which option I use to compile it.
If I change the code to:
#include <iostream.h>
int main()
{
cout << "Simple LCC C++ Program\n";
return 0;
}
int main()
{
cout << "Simple LCC C++ Program\n";
return 0;
}
then the program executes but freezes the command prompt...
Finally if I use -ansic or -pedantic switch I get a lot of warnings about obsolete code conventions. I'm not a C++ programmer, so that may be an issue here, but I can't tell you why :o