tpounds / tpunitpp

A simple, portable C++ xUnit library contained in a single header.
MIT License
23 stars 8 forks source link

Doesn't compile on 64bit MacOS X #2

Closed mostly-kittens closed 12 years ago

mostly-kittens commented 12 years ago

I can't get tpunit++ to compile on a 64 bit MacOS X system:


In file included from tpunit++main.cpp:22:
tpunit++.hpp: In static member function ‘static bool tpunit::TestFixture::__fp_equal(float, float, unsigned char)’:
tpunit++.hpp:368: error: size of array ‘__static_assert’ is negative
make: **\* [tpunit++main.o] Error 1

For information: sizeof(float) == 4 sizeof(long) == 8```

Further info:
```$ g++ -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)

$ uname -a
Darwin Mac-mini.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64```