huigezong / gamekit

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

complie error with gcc 4.7 under linux #231

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.svn checkout source code
2.cmake & make with gcc 4.7
3.get write is not declared error while compiling OIS

What is the expected output? What do you see instead?
It should compile without error, but I got.

What version of the product are you using? On what operating system?
Latest svn revision, compiled on archlinux with gcc4.7

Please provide any additional information below.
I googled and add #include <unistd.h> in those OIS cpp files. It compiles after 
that.

Original issue reported on code.google.com by sftry...@gmail.com on 11 May 2012 at 3:05

GoogleCodeExporter commented 8 years ago
Is this gcc 4.7 related?

Original comment by thomas.t...@googlemail.com on 13 May 2012 at 9:06

GoogleCodeExporter commented 8 years ago
Yes, each time gcc got updated, some std head files were moved out. I found 
that another OIS file also need to be patched for android.

I attached a new patch file here.

Original comment by sftry...@gmail.com on 13 May 2012 at 9:52

Attachments:

GoogleCodeExporter commented 8 years ago
Applied. Thank you very much!

Original comment by kungfoobar@gmail.com on 13 Jun 2012 at 4:34