[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: install error



On Fri, 12 Nov 2004, Kevin McCormick wrote:

> Following the build sequence of "make" "make config" and "make test"
> which encountered no errors, the install failed.
>
> root epix-1.0.0: $ make install
> Preparing samples and documentation...koch.c:11: warning: ISO C++
> forbids declaration of `main' with no type
>
> [snip]
>
> Since I just subscribed and don't know how to read the archive, I hope
> someone has encountered and solved this problem.
>
Hi Kevin,

Do you by chance have an old installation of epix on the machine? (The
latest source tarball's sample files declare their return type, so my
first guess is that "make install" is trying to compile an old version of
a sample file. In any case, the upgrade should remove outdated files, so
the behavior you've encountered is a bug.) As a work-around, you might try
editing the file samples/koch.xp, changing the line "main()" to "int main()"
(and similarly for any other files for which the compiler complains that
"main()" must have a return type). Then remove samples/koch.c and try
"make install" again. Please let me know if that generates other errors or
otherwise doesn't work.

Best regards,

Andy

Andrew D. Hwang			ahwang@mathcs.holycross.edu
Department of Math and CS	http://math.holycross.edu/~ahwang
College of the Holy Cross	(508) 793-2458 (Office: 320 Swords)
Worcester, MA, 01610-2395	(508) 793-3530 (fax)