zhangqd / chromiumembedded

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

Mac: Update README.txt to mention -Wno-c++0x-extensions flag required by Xcode 4 #1231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Mac OS Snow Leopard 1.6.9 | Xcode 4.2 | cef_binary_3.1768.1571_macosx64

I'm newcomer in CEF, still learning this stuff. Follow from getting the start's 
instruction, I just stuck when source 
start to build. Xcode show error 8 errors in two files below:

 - cef_byte_read_handler.h 
- cef_stream_resource_handler.h

specific error show at CefReadHandler and CefStreamResourceHandler methods: 

'override' keyword accepted as a C++0x extension

What should I do to fix it?

Thanks in Advance.

Original issue reported on code.google.com by Agnan.Za...@gmail.com on 15 Mar 2014 at 7:14

Attachments:

GoogleCodeExporter commented 9 years ago
> Mac OS Snow Leopard 1.6.9 | Xcode 4.2

This is a very old OS and Xcode version. You should upgrade.

> 'override' keyword accepted as a C++0x extension

When building with clang in Xcode 4 you need to specify the 
-Wno-c++0x-extensions compiler flag. This flag was recently removed from 
Chromium since it's no longer required with newer Xcode versions; see 
http://git.chromium.org/gitweb/?p=chromium.git;a=commitdiff;h=62edde2bc63c557afc
ead641882a309229bec4b3.

Marking this issue as a task since the README.txt documentation should be 
updated to describe the necessary changes for Xcode 4.

Original comment by magreenb...@gmail.com on 15 Mar 2014 at 8:31

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 15 Mar 2014 at 8:33

GoogleCodeExporter commented 9 years ago
This is no longer necessary with newer branches (2171+) that use cmake to 
generate project files.

Original comment by magreenb...@gmail.com on 11 Feb 2015 at 7:55