Date: Fri, 18 Aug 95 13:39:29 CST From: Hehui Jin Reply-To: Hehui Jin To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: DJGPP V2.0 beta and Coprecessors Chuck Reber wrote: >>> I just recently got a copy of DJGPP v2.0 beta and when i went to compile any >>> code (even the demo "hello world" programs) gcc comes up with an error >>> message saying something like coprocessor not availiable at address so'n'so. >>> >>> If anyone has had this problem and knows how to fix it id be grateful to hear >>> from you. >> >>There is a line missing in the djgpp.env file. Either add something like >> EMU387=%DJDIR%/bin/emu387.dxe >>Or set an environment variable which points to the same. > >Charles or anyone who wants to answer: > >I downloaded v2 the other day (beta 5 of cwsdpmi and beta 2 of dj) >and I got the above problem. So I did what you said and added the >line to my djgpp.env. But even with the change the problem still >exists. Here is how I create it with the test/examples: > >C:\DJGPP\TESTS\DXE>make >gcc dxetest.c -o dxetest >Exiting due to signal SIGNOFP >Coprocessor not available at eip=0000ca0c >eax=00000000 ebx=00000000 ecx=0005f260 edx=0000a324 esi=0005c1cc \ > edi=0001c400 >ebp=0005c3e4 esp=0005c1cc cs=0107 ds=010f es=010f fs=00e7 \ > gs=012f ss=010f >Call frame traceback EIPs: > 0x0000ca0c > 0x0000aa58 >make.exe: *** [dxetest] Error 255 > >No matter what I try, I seem not to be able to get it to work. I >have a 25MHz 486 with 4megs and I tried it both in windows and >DOS. Any Ideas? Try to add a line SET 387=NO in your autoexec.bat file if you don't have a math coprecessor on your computer. I once had the same problem as your and it disapeared after I add the above line. It seems to me that something like EMU387=%DJDIR%/bin/emu387.dxe is not needed in djgpp.env file. Hehui Jin jinxx015 AT gold DOT tc DOT umn DOT edu Hehui Jin