billyquith / ponder

C++ reflection library with Lua binding, and JSON and XML serialisation.
http://billyquith.github.io/ponder/
Other
640 stars 93 forks source link

namespace "ponder::detail::ponder" has no member "String" #80

Closed shierei closed 7 years ago

shierei commented 7 years ago

Hi,

I included some ponder header files following the examples/simple.cpp in my program without using the test environment.

include <ponder/uses/report.hpp>

include <ponder/detail/format.hpp>

using namespace ponder::detail::fmt;

include <ponder/classbuilder.hpp>

include <ponder/uses/runtime.hpp>

The compiler immediately encountered the following error when including the first header file report.hpp.

In file .../ponder/classget.hpp(36), from .../ponder/class.hpp(35), from ...ponder/uses/report.hpp(32), ... .../ponder/error.hpp(106): error: namespace "ponder::detail::ponder" has no member "String" static ponder::String str(T x);

The only thing the includes in my program that is different from simple.cpp is that it does not include "test.hpp". I am trying to use ponder in my project which does not use the test framework. How do I resolve this?

Thanks,

-Shie-rei

shierei commented 7 years ago

Oops. This was because the compiler in the machine that I used to compile the code did not support c++11. It worked on a machine with a compiler that supports c++11.