Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build on Mac OS X: myexception.hpp:31:43: error: expected class name #23

Closed
LudovicRousseau opened this issue Aug 11, 2013 · 3 comments
Assignees
Labels

Comments

@LudovicRousseau
Copy link

Hello,

If I compile on Mountain Lion (10.8) I get the error:

liblogicalaccess/include/logicalaccess/myexception.hpp:31:43: error: expected class name
    class bad_function_call : public std::bad_function_call
                                          ^

I am using:

$ g++ --version
i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
@Liryna
Copy link
Contributor

Liryna commented Aug 11, 2013

Hello Ludovic,

I am not really a Mac user but as I can see, your g++ (version 4.2.1) does not support c++ 0x11 standard.
Logicalaccess only build with 0x11 standard enable.

As I remember, "public std::bad_function_call" only appear on 0x11. (http:https://en.cppreference.com/w/cpp/utility/functional/bad_function_call)

Is it possible for you to install g++ version 4.7>= and try again ?

(I found this: http:https://superuser.com/questions/517218/how-do-i-install-gcc-4-7-2-on-os-x-10-8)

@ghost ghost assigned Liryna Aug 11, 2013
@LudovicRousseau
Copy link
Author

Installing my own version of g++ is not really an option without creating a big mess with the Apple installed tools.

You can mark the bug as "wont fix" or something like that if you want.

@Liryna
Copy link
Contributor

Liryna commented Aug 11, 2013

Yes I can imagine that should not be easy.

Anyway it is not possible to fix this because we use a lot of 0x11 features.

Try to use another OS who has g++ 4.7

@Liryna Liryna closed this as completed Aug 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants