|
From: Daniel J S. <dan...@ie...> - 2004-10-03 20:32:18
|
Hans-Bernhard Broeker wrote: >Daniel, or whoever has time to look into this: > >the strange construction of bin_hook.c #include'ing binary.c currently >causes a complete break of the Cygwin build. It essentially introduces >to complete copies of binary.c into the build, which causes a multiple >definition error from the linker for everything defined in there. > >Basically, the problem is that both bin_hook.o and binary.o end up >listed in makefile.all, so they will both be compiled and linked. > > For the main gnuplot executable, binary.o should not be linked in. (Either bin_hook.o is a replica of binary.o or it is empty, depending on a configure switch.) I've looked at this. I can't seem to generate a representative makefile.all. (I'm not on windows.) But I think the attached patch should fix the problem. Please give it a try. Dan BTW, why is makefile.all in the CVS source tree, if it is to be generated by automake? |