T
tm
Hi, I have a problem with lcc-win32:
The generated executables are not useable.
I use XP Service Pack 3
Lcc has version 3.8 Compilation date: Jan 29 2011
Lcc is installend in C:\lcc with the official installer.
The path variable contains C:\lcc\bin
The environment variable LCCDIR is set to C:\lcc
I just tried to compile hello world with lcc-win32.
Lcc generates an executable with lcc hello.c -o hello.exe
When I start hello.exe it writes nothing and hangs.
I need to kill ntvdm.exe to stop the hang. In some tests a
a message box appeared that tells me that Ntvdm found an
illegal instruction. The hello world is as follows:
---------- begin file hello.c ----------
#include <stdio.h>
int main (int argc, char *argv[])
{
printf("Hello, world\n");
return 0;
}
---------- end file hello.c ----------
Can it be, that I need to use WinMain?
This would certainly be a problem, since the application
I try to compile insists on having a 'main'.
Other C compilers for Windows allow 'main' also, so
hopefully this is not a problem for lcc-win32.
Please help me.
Thanks in advance for the effort.
Greetings Thomas Mertes
--
Seed7 Homepage: http://seed7.sourceforge.net
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch, statically typed,
interpreted or compiled, portable, runs under linux/unix/windows.
The generated executables are not useable.
I use XP Service Pack 3
Lcc has version 3.8 Compilation date: Jan 29 2011
Lcc is installend in C:\lcc with the official installer.
The path variable contains C:\lcc\bin
The environment variable LCCDIR is set to C:\lcc
I just tried to compile hello world with lcc-win32.
Lcc generates an executable with lcc hello.c -o hello.exe
When I start hello.exe it writes nothing and hangs.
I need to kill ntvdm.exe to stop the hang. In some tests a
a message box appeared that tells me that Ntvdm found an
illegal instruction. The hello world is as follows:
---------- begin file hello.c ----------
#include <stdio.h>
int main (int argc, char *argv[])
{
printf("Hello, world\n");
return 0;
}
---------- end file hello.c ----------
Can it be, that I need to use WinMain?
This would certainly be a problem, since the application
I try to compile insists on having a 'main'.
Other C compilers for Windows allow 'main' also, so
hopefully this is not a problem for lcc-win32.
Please help me.
Thanks in advance for the effort.
Greetings Thomas Mertes
--
Seed7 Homepage: http://seed7.sourceforge.net
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch, statically typed,
interpreted or compiled, portable, runs under linux/unix/windows.