1. EUC and gcc question
- Posted by jessedavis Mar 09, 2018
- 1275 views
I need a little help here!
I have used EUC for a long time to produce .exe files with Watcom. Apparently support for Watcom has been dropped. I switched to mingw gcc compiler:
include std/console.e puts(1,"begin\n\n") atom t0 = time() system("euc -gcc z.exw -keep") atom diff = time() - t0 printf(1,"elapsed time %5.2f seconds\n\n",diff) any_key()
The .c files are produced OK by euc
Unfortunately it compiles init-.c only and produces no .exe file!
begin Build directory: build-585314\ Translating code, pass: 1 2 3 4 5 6 7 8 9 10 11 12 generating Compiling with GCC Compiling 2% init-.c elapsed time 3.30 seconds Press Any Key to continue...
What am I missing?
regards,
jd
2. Re: EUC and gcc question
- Posted by ghaberek (admin) Mar 09, 2018
- 1292 views
Strange. Which version of MinGW are you running? I recommend using TDM-GCC 5.1.0.
As a test, have euc create a Makefile and see if using that works. If not, please post the content of the Makefile and the output of the mingw32-make command.
euc -gcc -keep -makefile z.exw mingw32-make -f z.mak
-Greg
3. Re: EUC and gcc question
- Posted by jessedavis Mar 09, 2018
- 1258 views
Sorry I forgot the obvious:
gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)
euphoria 4.05
CC = gcc CFLAGS = -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math LINKER = gcc LFLAGS = C:/Euphoria/bin/eu.a -m32 -mwindows Z_SOURCES = init-.c z.c main-.c jd.c pretty.c console.c get.c machine.c memconst.c memory.c dll.c types.c text.c convert.c search.c filesys.c datetime.c math.c sequence.c sort.c map.c eumem.c primes.c eds.c Z_OBJECTS = init-.o z.o main-.o jd.o pretty.o console.o get.o machine.o memconst.o memory.o dll.o types.o text.o convert.o search.o filesys.o datetime.o math.o sequence.o sort.o map.o eumem.o primes.o eds.o Z_GENERATED_FILES = init-.c init-.o main-.h z.c z.o main-.c main-.o jd.c jd.o pretty.c pretty.o console.c console.o get.c get.o machine.c machine.o memconst.c memconst.o memory.c memory.o dll.c dll.o types.c types.o text.c text.o convert.c convert.o search.c search.o filesys.c filesys.o datetime.c datetime.o math.c math.o sequence.c sequence.o sort.c sort.o map.c map.o eumem.c eumem.o primes.c primes.o eds.c eds.o C:/Users/jed7/DOCUME~1/DATABA~1/NBAZ/z.exe: $(Z_OBJECTS) C:/Euphoria/bin/eu.a $(LINKER) -o C:/Users/jed7/DOCUME~1/DATABA~1/NBAZ/z.exe $(Z_OBJECTS) $(LFLAGS) .PHONY: z-clean z-clean-all z-clean: rm -rf $(Z_OBJECTS) z-clean-all: z-clean rm -rf $(Z_SOURCES) C:/Users/jed7/DOCUME~1/DATABA~1/NBAZ/z.exe %.o: %.c $(CC) $(CFLAGS) $*.c -o $*.o
4. Re: EUC and gcc question
- Posted by ghaberek (admin) Mar 09, 2018
- 1295 views
But did that work? Did it build using that method?
-Greg
5. Re: EUC and gcc question
- Posted by jessedavis Mar 09, 2018
- 1247 views
Sorry for the delay. No it did not work and I haven't yet had time to thinbk about it.
make: *** No rule to make target `init-.o', needed by `C:/Users/jed7/DOCUME~1/DATABA~1/NBAZ/z.exe'. Stop.