Compiling .e source code on Linux box Woes
- Posted by phix032147 Mar 04, 2023
- 740 views
Just finished a nice little console-based prog. Great refresher of the Euphoria syntax and works like a charm. Now I want to compile it to a Linux executable. So ..
I've edited eu.cfg to reflect the correct directories
euc -lib-pic euso.a -arch ix86_64 -gcc -o <filename> <filename.e>
But it chokes with an error msg that it can't find `include/euphoria.h' the -com entry in eu.cfg points to the correct "include" directory
I had to add: `-cflags -fPIE' to eu.cfg because without it compiling chokes with a bunch of linker errors telling me to re-compile usimg -fPIE.
Anybody here familiar with compiling Euphoria on *nix?