Compilation of the code


EasyMesh is written in the C language. It was developed and tested on a PC, using Watcom C/C++ 10.0a compiler. During the development, many non-standard Watcom's graphical functions were included to facilitate the debugging of the code. Later, this functions were not cancelled but enclosed inside the compiler directives, which resulted in the portability of the code. So, the code should be portable.

I compiled and run EasyMesh on the following platforms:

If someone successfully compiles and run the code on a different machine, or operating sistem, or compiler, please let me know, so that I can add it to the list.

EasyMesh was designed in such a way to be as easy to use and maintain as possible. In that spirit, memory allocation is made static. As a consequence, the program cannot generate grids with more than 3000 nodes. However, you can increase the number of acceptable nodes by changing the constant in the line:
#define MAX_NODES 3000
to a value greater than 3000. For example:
#define MAX_NODES 6000.

If you want to run EasyMesh on a PC, and want to see the graphics, you must change the line:
#define GRAPHICS OFF
to:
#define GRAPHICS ON,
then you can compile under DOS, but with Watcom compiler only.

For those who are not fammiliar with the C compilers, the command line to compile EasyMesh on UNIX-based machines, is the following:
cc -o EasyMesh -O3 easymesh.c -lm

or on machines running Linux:
gcc -o EasyMesh -O3 easymesh.c -lm

On the PC running DOS/W95, which have Watcom C compiler installed, the command line to compile EasyMesh is:
wcl386 easymesh.c


Return to EasyMesh home page.
niceno@univ.trieste.it