Package: mingw32
Version: 4.2.1.dfsg-1
Severity: normal

I get the following link error when I try to build this program as C++:

$ cat pow.cpp
#include <math.h>
int main() { fmodf(0.0, 0.0); powf(0.0, 0.0); }
$ i586-mingw32msvc-g++ -o pow pow.cpp
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/libstdc++.a(stubs.o):(.text+0x160): 
multiple definition of `_powf'
/tmp/ccQcUwaq.o:pow.cpp:(.text$powf[_powf]+0x0): first defined here
collect2: ld returned 1 exit status

If I compile with i586-mingw32msvc-gcc instead, it succeeds.

This problem prevents me from building LLVM (http://llvm.org/) with 
Debian's mingw32 tools.

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-486
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mingw32 depends on:
ii  libc6                 2.7-18             GNU C Library: Shared libraries
ii  mingw32-binutils      2.18.50-20080109-1 Minimalist GNU win32 (cross) binut
ii  mingw32-runtime       3.13-1             Minimalist GNU win32 (cross) runti

mingw32 recommends no packages.

Versions of packages mingw32 suggests:
pn  cpp-doc                       <none>     (no description available)
pn  gcc-doc                       <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to