Re: Compile
- Posted by ghaberek (admin) Jan 28, 2015
- 1746 views
buzzo said...
Compiled, but will not run...
I've had a lot of issues with MinGW lately. Try switching to TDM-GCC instead.
C:\Euphoria\Downloads\wee>gcc -v Using built-in specs. COLLECT_GCC=mingw32-gcc COLLECT_LTO_WRAPPER=C:/tdm-gcc-32/bin/../libexec/gcc/mingw32/4.8.1/lto-wrapper.exe Target: mingw32 Configured with: ../../../src/gcc-4.8.1/configure --build=mingw32 --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-libgomp --enable-lto --enable-graphite --enable-libstdcxx-debug --enable-threads=posix --enable-version-specific-runtime-libs --enable-fully-dynamic-string --enable-libstdcxx-threads --enable-libstdcxx-time --with-gnu-ld --disable-werror --disable-nls --disable-win32-registry --disable-symvers --enable-cxx-flags='-fno-function-sections -fno-data-sections -DWINPTHREAD_STATIC' --prefix=/mingw32tdm --with-local-prefix=/mingw32tdm --with-pkgversion=tdm-2 --enable-sjlj-exceptions --with-bugurl=http://tdm-gcc.tdragon.net/bugs Thread model: posix gcc version 4.8.1 (tdm-2)
C:\Euphoria\Downloads\wee>euc -gcc -makefile -nobuild WEE.EXW Translating code, pass: 1 2 3 4 5 6 7 generating 12.c files were created. To build your project, type make -f WEE.mak
C:\Euphoria\Downloads\wee>mingw32-make -f WEE.mak gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math init-.c -o init-.o gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math WEE.c -o WEE.o gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math main-.c -o main-.o gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math parser.c -o parser.o gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math file.c -o file.o gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math sort.c -o sort.o gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math scintilla.c -o scintilla.o gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math dll.c -o dll.o gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math machine.c -o machine.o gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math get.c -o get.o gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math ui_win.c -o ui_win.o gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m32 -IC:/Euphoria -ffast-math window.c -o window.o gcc -o C:/Euphoria/DOWNLO~1/wee/WEE.exe init-.o WEE.o main-.o parser.o file.o sort.o scintilla.o dll.o machine.o get.o ui_win.o window.o C:/Euphoria/bin/eu.a -m32
buzzo said...
larger file than using bind..
This happens, unfortunately. You can use UPX to compress your exectuables.
C:\Euphoria\Downloads\wee>upx WEE.exe Ultimate Packer for eXecutables Copyright (C) 1996 - 2013 UPX 3.91w Markus Oberhumer, Laszlo Molnar & John Reiser Sep 30th 2013 File size Ratio Format Name -------------------- ------ ----------- ----------- 726330 -> 405306 55.80% win32/pe WEE.exe Packed 1 file.
-Greg