1. Couldn't compile file 'init-.c'
- Posted by paulof Sep 20, 2012
- 1821 views
Why? Does somebody hear could help me? Thanks a lot.
Paulo
D:\Lab\Testes>**euc -con -keep C_x_Euphoria.ex** Build directory: build-891232\ Translating code, pass: 1 2 3 4 5 6 7 8 generating Compiling with Watcom Compiling 2% init-.c Couldn't compile file 'init-.c' Status: -1 Command: wcc386 /dEWINDOWS /bt=nt /mf /w0 /zq /j /zp4 /fp5 /fpi87 /5r /otimra /s /IC:\Linguags\Euphoria init-.c D:\Lab\Testes>**set** ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\Paulo\AppData\Roaming CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=PAULO-PC ComSpec=C:\Windows\system32\cmd.exe DirCmd=/P/O:GEN EUDIR=C:\Linguags\Euphoria FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=\Users\Paulo INCLUDE=C:\Linguags\Euphoria\watcom\h;C:\Linguags\Euphoria\watcom\h\nt LOCALAPPDATA=C:\Users\Paulo\AppData\Local LOGONSERVER=\\PAULO-PC NUMBER_OF_PROCESSORS=2 OS=Windows_NT Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Linguags\Bor land\Delphi7\Bin;C:\Linguags\Borland\Delphi7\Projects\Bpl\;C:\Windows\system32;C :\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C :\Linguags\FPC242\bin\i386-Win32;C:\Program Files\Windows Live\Shared;C:\Program Files\Microsoft Network Monitor 3\;C:\Linguags\Euphoria\bin;;C:\Bats;C:\Utilit PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=1706 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files PROMPT=$P$G PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ PUBLIC=C:\Users\Public SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\Paulo\AppData\Local\Temp TMP=C:\Users\Paulo\AppData\Local\Temp USERDOMAIN=Paulo-PC USERNAME=Paulo USERPROFILE=C:\Users\Paulo VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\ WATCOM=C:\Linguags\Euphoria\watcom windir=C:\Windows D:\Lab\Testes>
2. Re: Couldn't compile file 'init-.c'
- Posted by ne1uno Sep 20, 2012
- 1820 views
Why? Does somebody hear could help me? Thanks a lot.
Paulo
D:\Lab\Testes>euc -con -keep C_x_Euphoria.ex
Build directory: build-891232\ Translating code, pass: 1 2 3 4 5 6 7 8 generating Compiling with Watcom Compiling 2% init-.c Couldn't compile file 'init-.c' Status: -1 Command: wcc386 /dEWINDOWS /bt=nt /mf /w0 /zq /j /zp4 /fp5 /fpi87 /5r /otimra /s /IC:\Linguags\Euphoria init-.c
does it run interpreted w/eui?
try to cut the program back somewhat to find the problem if there isn't an obvious syntax error when running interpreted.
3. Re: Couldn't compile file 'init-.c'
- Posted by paulof Sep 20, 2012
- 1801 views
Yes, with the interpreter (eui), the program run without any problems.
I try to compiling but I didn't get the .exe file!
Paulo
Why? Does somebody hear could help me? Thanks a lot.
Paulo
D:\Lab\Testes>euc -con -keep C_x_Euphoria.ex
Build directory: build-891232\ Translating code, pass: 1 2 3 4 5 6 7 8 generating Compiling with Watcom Compiling 2% init-.c Couldn't compile file 'init-.c' Status: -1 Command: wcc386 /dEWINDOWS /bt=nt /mf /w0 /zq /j /zp4 /fp5 /fpi87 /5r /otimra /s /IC:\Linguags\Euphoria init-.c
does it run interpreted w/eui?
try to cut the program back somewhat to find the problem if there isn't an obvious syntax error when running interpreted.
4. Re: Couldn't compile file 'init-.c'
- Posted by mattlewis (admin) Sep 20, 2012
- 1769 views
Why? Does somebody hear could help me? Thanks a lot.
It's hard to say, since any error message from Watcom isn't displayed in this sort of build. Try translating with the -makefile option, and then use wmake -f C_x_Euphoria.mak.
> euc -con -makefile C_x_Euphoria.ex ... > wmake -f C_x_Euphoria.ex
That way, you should get a better error message.
Matt
5. Re: Couldn't compile file 'init-.c'
- Posted by paulof Sep 22, 2012
- 1709 views
wmake -f C_x_Euphoria.ex }}}
That way, you should get a better error message.
Matt
Thanks, Matt, for trying to help me. Your solution, using the -makefile, compiled, but the wmake was not accessible. I concluded that the problem was related to environment variables operating system (Win-7). I decided writing the following batch file, which is run before triggering the eui or euc:
@Echo off Set EUDIR=C:\Linguags\Euphoria Set WATCOM=C:\Linguags\Euphoria\Watcom Set PATH=%PATH%;C:\Linguags\Euphoria\Bin;C:\Linguags\Euphoria\Watcom\BinNT Set INCLUDE=C:\Linguags\Euphoria\Watcom\h;C:\Linguags\Euphoria\Watcom\h\nt Set LIB=C:\Linguags\Euphoria\Watcom\Lib386;C:\Linguags\Euphoria\Watcom\Lib386\ntThese environment variables may also be setting via Control Panel > System > Advanced System Settings > Environment Variables button, creating 5 new entries (New... button), one for each row Batch File above.
In conclusion, I think that should be done two things:
1st) Rewrite the euc, because it can not do the translation of my program to an executable, even when the environment variable was correctly indicated on my EUDIR setting. I would not say that this is a bug but an euc inability dealing with these issues folders and directories from EUDIR correctly setting;
2nd) Rewrite the Handbook chapter about translating programs from .ex to .exe. It was not sufficiently clear to solve problems alike. I had to work hard to achieve the solution presented above in this text.
Paulo
6. Re: Couldn't compile file 'init-.c'
- Posted by mattlewis (admin) Sep 22, 2012
- 1711 views
Thanks, Matt, for trying to help me. Your solution, using the -makefile, compiled, but the wmake was not accessible. I concluded that the problem was related to environment variables operating system (Win-7). I decided writing the following batch file, which is run before triggering the eui or euc:
@Echo off Set EUDIR=C:\Linguags\Euphoria Set WATCOM=C:\Linguags\Euphoria\Watcom Set PATH=%PATH%;C:\Linguags\Euphoria\Bin;C:\Linguags\Euphoria\Watcom\BinNT Set INCLUDE=C:\Linguags\Euphoria\Watcom\h;C:\Linguags\Euphoria\Watcom\h\nt Set LIB=C:\Linguags\Euphoria\Watcom\Lib386;C:\Linguags\Euphoria\Watcom\Lib386\ntThese environment variables may also be setting via Control Panel > System > Advanced System Settings > Environment Variables button, creating 5 new entries (New... button), one for each row Batch File above.
In conclusion, I think that should be done two things:
1st) Rewrite the euc, because it can not do the translation of my program to an executable, even when the environment variable was correctly indicated on my EUDIR setting. I would not say that this is a bug but an euc inability dealing with these issues folders and directories from EUDIR correctly setting;
The problem appears to be that the Watcom stuff wasn't on your path. This isn't a EUDIR issue.
2nd) Rewrite the Handbook chapter about translating programs from .ex to .exe. It was not sufficiently clear to solve problems alike. I had to work hard to achieve the solution presented above in this text.
Yes, looking at it, we should probably add a section to help verify that the compiler is installed and available.
Matt
7. Re: Couldn't compile file 'init-.c'
- Posted by ed_davis Oct 05, 2012
- 1614 views
I had the same problem. Here is what the setenv-ow.bat file had:
@ echo off REM REM Set the environment for this installation of Euphoria REM SET EUDIR=c:\Eu SET WATCOM=c:\Eu\watcom SET PATH=%EUDIR%\bin;%WATCOM\binw;%WATCOM%\binnt;%PATH% SET INCLUDE=%WATCOM%\h;%WATCOM%\h\ntNotice that in the PATH setting, WATCOM is missing the ending '%'. Adding that fixed the problem.