[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr'
From: |
Simon Josefsson |
Subject: |
Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr' |
Date: |
Fri, 23 Apr 2010 11:13:04 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) |
Bruno Haible <address@hidden> writes:
>> g++ -o test-string-c++.exe test-string-c++.o test-string-c++2.o
>> ../gllib/libgnu.a
>> test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr'
>
> Why is CXX="g++" being used when you are cross-compiling from linux to mingw??
Ah, that's the problem.
> Did you specify a CXX to configure?
No, just the commands shown in the first post.
> Or did configure find nothing usable because you haven't installed a
> 'i586-mingw32msvc-g++'?
It is installed, but configure.ac doesn't call AC_PROG_CXX so it never
checks for that tool. Adding AC_PROG_CXX to gltests/configure.ac solves
the problem. I see that ansi-c++-opt.m4 may be attempting to do setup a
C++ compiler, but it doesn't seem to work when cross-compiling.
/Simon
- test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr', Simon Josefsson, 2010/04/21
- Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr', Bruno Haible, 2010/04/21
- Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr', Simon Josefsson, 2010/04/22
- Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr', Bruno Haible, 2010/04/22
- Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr', Simon Josefsson, 2010/04/22
- Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr', Bruno Haible, 2010/04/22
- Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr',
Simon Josefsson <=
- Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr', Bruno Haible, 2010/04/24
- Re: test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr', Simon Josefsson, 2010/04/25