On 24 July 2007 13:42, Sisyphus wrote: > I've built Inline::CPP on previous Cygwin installations (on Windows 2000) > and on "native" Win32 builds of perl , but attempts to build this module > under Cygwin are now failing under 'make test' with the following errors: > > ------------------------------------- > gcc -shared -o > _01basic_t_5cd2.dll -Wl,--out-implib=lib_01basic_t_5cd2.dll.a > -Wl,--export-all-symbols > -Wl,--enable-auto-import -Wl,--stack,8388608 -Wl,--enable-auto-image-base \ > -s -L/usr/local/lib _01basic_t_5cd2.o > /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a > _01basic_t_5cd2.o:_01basic_t_5cd2.c:(.text+0x2a5): undefined reference to > `operator new(unsigned int)' > _01basic_t_5cd2.o:_01basic_t_5cd2.c:(.text+0x1345): undefined reference to > `operator delete(void*)' > _01basic_t_5cd2.o:_01basic_t_5cd2.c:(.text+0x19cc): undefined reference to > `std::ios_base::Init::Init()' > _01basic_t_5cd2.o:_01basic_t_5cd2.c:(.text+0x19e8): undefined reference to > `std::ios_base::Init::~Init()' > Creating library file: lib_01basic_t_5cd2.dll.a > collect2: ld returned 1 exit status > perlld: *** system() failed to execute > ------------------------------------- > > My immediate thought is that the problem arises because, as is evident from > the above copy'n'paste, 'gcc' is being invoked instead of 'g++'.
Almost certainly, using the wrong driver means the c++ libraries won't be included on the linker command line. > Is there some %Config::Config{} key that contains an inappropriate value, or > does the bug lie within the Inline::CPP-0.25 source ? That I can't say. But assuming the build uses proper dependencies in the makefile, you should be able to workaround it by cutting and pasting that line into your shell, replacing 'gcc' by 'g++' as you go, and once you've got past that manually the rest of the build should run to completion. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/