GithubHelp home page GithubHelp logo

Comments (5)

ras0219-msft avatar ras0219-msft commented on May 13, 2024

I'm not seeing this issue with the default settings:

$ c++ CPPRest\ issue\ repro.cpp -I casablanca/Release/include -L casablanca/build.relstatic/Binaries -lcpprest -I /usr/local/include -std=c++11 -lssl -lcrypto -L/usr/local/lib -lboost_system
In file included from CPPRest issue repro.cpp:3:
In file included from casablanca/Release/include/cpprest/json.h:36:
In file included from casablanca/Release/include/cpprest/details/basic_types.h:41:
casablanca/Release/include/cpprest/details/SafeInt3.hpp:125:34: warning: unknown warning group '-Wunused-local-typedef', ignored [-Wunknown-pragmas]
#pragma clang diagnostic ignored "-Wunused-local-typedef"
                                 ^
1 warning generated.
$ ./a.out
json::json_exception caught
$

This is with the latest development version and the compiler version:

$ c++ --version
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

On OSX we only support clang, are you trying to build with gcc?

from cpprestsdk.

dbertrand402 avatar dbertrand402 commented on May 13, 2024

I'm using the Apple LLVM 6.1 compiler. The only difference I can see is that I'm using XCode IDE while you are using the Terminal.

$ c++ --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix

from cpprestsdk.

ras0219-msft avatar ras0219-msft commented on May 13, 2024

Could you try the command line approach and see if you're getting the same behavior that I see? If so, then we can narrow it down to XCode being the problem.

from cpprestsdk.

dbertrand402 avatar dbertrand402 commented on May 13, 2024

Found out issue is caused by "Symbols Hidden By Default" being set to YES in Release. Setting it to NO solves the problem.

from cpprestsdk.

ras0219-msft avatar ras0219-msft commented on May 13, 2024

Thanks for posting the resolution 👍

from cpprestsdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.