Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

error message with hello.exe

165 views
Skip to first unread message

Menno van Barneveld

unread,
Dec 17, 2008, 5:25:02 AM12/17/08
to
I downloaded lcc automaticly yesterday

With some difficulties I happened to get hello.exe from:

#include <stdio.h>
int main(void)
{
printf("Hello\n");
return 0;
}

When I start the program with the Windows Vista execute prompt I get a
console box for the program without "Hello"
and an error box with the following:
16 bit MS-DOS Subsystem
C:\Program1\lcc\projects\default\hello.exe
The NTVDM CPU has encountered an illegal instruction.
CS:11c7 IP:0103 OP:63 6c 75 64 65 Choose Çlose'to terminate the application.

My laptop has a processor type Intel(R) Core(TM)2 CPU T5500

Is it possible that the processor does not fit the instructionset of lcc?

Menno van Barneveld

jacob navia

unread,
Dec 17, 2008, 2:42:28 PM12/17/08
to
Menno van Barneveld wrote:
> I downloaded lcc automaticly yesterday
>
> With some difficulties I happened to get hello.exe from:
>
> #include <stdio.h>
> int main(void)
> {
> printf("Hello\n");
> return 0;
> }
>
> When I start the program with the Windows Vista execute prompt I get a
> console box for the program without "Hello"
> and an error box with the following:
> 16 bit MS-DOS Subsystem <<<<<<<<<<<<<<<<<<<<<------ ????????????????bug here

> C:\Program1\lcc\projects\default\hello.exe
> The NTVDM CPU has encountered an illegal instruction.
> CS:11c7 IP:0103 OP:63 6c 75 64 65 Choose Çlose'to terminate the
> application.
>
> My laptop has a processor type Intel(R) Core(TM)2 CPU T5500
>
> Is it possible that the processor does not fit the instructionset of lcc?
>
> Menno van Barneveld


1) I do not understand why the program runs in the 16 bit msdos
subsystem. lcc-win pograms are 32 bits.

2) Are there any error messages when you compile the hello.c text?

3) What size has the hello.exe program?


Please ansswer this questions and maybe we can see what goes wrong.


--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32

Menno van Barneveld

unread,
Dec 17, 2008, 4:56:17 PM12/17/08
to

"jacob navia" <ja...@nospam.org> schreef in bericht
news:49495635$0$4075$ba4a...@news.orange.fr...

Yes Jacob, I get an error:
"unable to open messagefile \hello.err for writing
de bewerking is voltooid (means 'the process is finished')
defaulting to c:\program1\lcc\examples\dialog\lcc\errout.err"
then an other error:
"Impossible to execute 'c:\program1\lcc\bin\make.exe' "
The project configuration gives output file name
c:\program1\lcc\examples\dialog\lcc\
The exe file is gon.
Now I make the outputfile hello.exe c:\program1\lcc\projects\default\
Now the program is linked.
Ctrl F5 gives a window from c:\program1\lcc\bin\rundos.exe with the content:
"hello.exe c:\program1\default"
Return code -1
Executiontime 0.001 seconds
Press any key to continue...

but the exe file is not put in the map because of not having rights to do
so.
I cannot find back the hello.exe file.

Menno.


Menno van Barneveld

unread,
Dec 18, 2008, 4:55:07 AM12/18/08
to

"jacob navia" <ja...@nospam.org> schreef in bericht
news:49495635$0$4075$ba4a...@news.orange.fr...

Dear Jacob,

The problem is reduced to creating or saving the exe file.
In the configuration of Wedit I gave the outputfilename
hello.exe c:\program1\lcc\examples\hello\lcc1
In that map I find a Makefile.
On linking I get an errormessage Circular dependency from Makefile.
Exection gives a window from rundos.exe with the content:
"hello.exe c:\program1\lcc\examples\hello\lcc1"
Return code -1
Executiontime 0.016 seconds


Press any key to continue...

The contents of the makefile is:
# Wedit Makefile for project hello
SRCDIR=c:\program1\lcc\examples\dialog
CFLAGS=-I"c:\program1\lcc\include" -g2
CC=$(LCCROOT)\bin\lcc.exe
LINKER=$(LCCROOT)\bin\lcclnk.exe
OBJS=\

LIBS=
EXE="hello.exe"

$(EXE): $(OBJS) Makefile
$(LINKER) -subsystem console -o $(SRCDIR)\lcc1\"hello.exe" $(OBJS) $(LIBS)

link:
$(LINKER) -subsystem console -o $(SRCDIR)\lcc1\"hello.exe" $(OBJS) $(LIBS)

clean:
del $(OBJS) "hello.exe"

hello.exe does not appear in any map.

Menno.

0 new messages