Hello all,
I am trying to include a C++ library with quite a few templates into an objective C application.
It seems to perpetually choke on a few inline statements inside a shared library:
template <class T>
inline T MIN(T a, T b) { return a > b ? b : a; }
template <class T>
inline T MAX(T a, T b) { return a > b ? a : b; }
yielding the output:
expected unqualified-id before '{' token
expected `)' before '{' token
I am compiling with the options.
g++ -x objective-c++ -Wall -O3 -I. -c demod_gui.m -o demod_gui
All the other templates seem to compile fine, any idea what could be wrong here? Thanks in advance for any help.