hfossli / SocketIO-Client-CPP-iOS-Builds

Static library builds for https://github.com/socketio/socket.io-client-cpp
MIT License
6 stars 1 forks source link

error: #include <string> string file not found #2

Closed coffeeGF closed 8 years ago

coffeeGF commented 8 years ago

I download 'heade'r and '.a' files and copy into my Xcode project. Then ' #include ' line in 'sio_client.h' file show "string file not found" error Should i add some other libs to make it works fine? thanks.

hfossli commented 8 years ago

Are you importing this to a .m file or .mm file? Can you expand the error? See where it originates from?

coffeeGF commented 8 years ago

When i added #include "sio_client.h" to ViewController.m ,sio_client.h file show string file not found. Then i changed the Viewcontroller.m to ViewController.mm ,the error disappeared.

hfossli commented 8 years ago

Perfect