aka258 / bluecove

Automatically exported from code.google.com/p/bluecove
0 stars 0 forks source link

GCC Warnings during build with gcc #120

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download latest trunk mingw64 toolchain
2. try to compile commons.cpp/intelbth.cpp with i686/x_86_64-w64-mingw32-gcc
3. observe warnings

What is the expected output? What do you see instead?
a warning about undefined CPP_FILE, warnings about converting string to char* 
instead of const char*

Original issue reported on code.google.com by sven.koe...@gmail.com on 28 Nov 2010 at 1:56

Attachments:

GoogleCodeExporter commented 9 years ago
Oh, "new (PoolableObject* [size]);" has been changed to "new PoolableObject* 
[size];" because it triggered the following warning:
warning: lambda expressions only available with -std=c++0x or -std=gnu++0x

Original comment by sven.koe...@gmail.com on 28 Nov 2010 at 1:59

GoogleCodeExporter commented 9 years ago
Oh, and files in mingw64 are all lower case. So I needed to change 
BluetoothAPIs.h to bluetoothapis.h, which should work just fine on Windows.

Original comment by sven.koe...@gmail.com on 28 Nov 2010 at 2:23

GoogleCodeExporter commented 9 years ago
Regarding changes BluetoothAPIs.h to bluetoothapis.h

Is there ifdef that can be used for mingw64 toolchain environment?

Original comment by skarzhev...@gmail.com on 29 Nov 2010 at 12:18