-------------- Build: Release in cbs (compiler: GNU GCC Compiler)---------------
g++ -Wall -fexceptions -O2 -std=c++11 -m64 -I/usr/include/mysql -c /opt/projects/c++/cbs/cbs/main.cpp -o obj/Release/main.o
g++ -Wall -fexceptions -O2 -std=c++11 -m64 -I/usr/include/mysql -c /opt/projects/c++/cbs/cbs/product.cpp -o obj/Release/product.o
g++ -Wall -fexceptions -O2 -std=c++11 -m64 -I/usr/include/mysql -c /opt/projects/c++/cbs/cbs/stat.cpp -o obj/Release/stat.o
g++ -L/usr/lib64/mysql -o bin/Release/cbs obj/Release/draw.o obj/Release/getchoice.o obj/Release/main.o obj/Release/product.o obj/Release/stat.o -s -m64 -lmysqlclient -lpthread
In file included from /usr/include/c++/4.8.2/algorithm:61:0,
from /opt/projects/c++/cbs/cbs/main.cpp:2:
/usr/include/c++/4.8.2/bits/stl_algobase.h:239:56: error: macro "min" passed 3 arguments, but takes just 2
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
In file included from /usr/include/mysql/mysql/psi/mysql_thread.h:57:0,
from /usr/include/mysql/my_pthread.h:750,
from /usr/include/mysql/my_sys.h:34,
from /opt/projects/c++/cbs/cbs/product.h:5,
from /opt/projects/c++/cbs/cbs/product.cpp:2:
/usr/include/mysql/mysql/psi/psi.h:40:2: error: #error "You must include my_global.h in the code for the build to be correct."
#error "You must include my_global.h in the code for the build to be correct."
^
In file included from /usr/include/c++/4.8.2/bits/char_traits.h:39:0,
from /usr/include/c++/4.8.2/ios:40,
from /usr/include/c++/4.8.2/ostream:38,
from /usr/include/c++/4.8.2/iostream:39,
from /opt/projects/c++/cbs/cbs/draw.h:4,
from /opt/projects/c++/cbs/cbs/product.h:7,
from /opt/projects/c++/cbs/cbs/product.cpp:2:
/usr/include/c++/4.8.2/bits/stl_algobase.h:239:56: error: macro "min" passed 3 arguments, but takes just 2
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:260:56: error: macro "max" passed 3 arguments, but takes just 2
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
In file included from /usr/include/mysql/my_pthread.h:750:0,
from /usr/include/mysql/my_sys.h:34,
from /opt/projects/c++/cbs/cbs/product.h:5,
from /opt/projects/c++/cbs/cbs/product.cpp:2:
/usr/include/mysql/mysql/psi/mysql_thread.h: In function ‘int inline_mysql_cond_wait(mysql_cond_t*, mysql_mutex_t*, const char*, uint)’:
/usr/include/mysql/mysql/psi/mysql_thread.h:1151:56: error: ‘my_cond_wait’ was not declared in this scope
result= my_cond_wait(&that->m_cond, &mutex->m_mutex);
^
/usr/include/mysql/mysql/psi/mysql_thread.h:1162:54: error: ‘my_cond_wait’ was not declared in this scope
result= my_cond_wait(&that->m_cond, &mutex->m_mutex);
^
/usr/include/mysql/mysql/psi/mysql_thread.h: In function ‘int inline_mysql_cond_timedwait(mysql_cond_t*, mysql_mutex_t*, const timespec*, const char*, uint)’:
/usr/include/mysql/mysql/psi/mysql_thread.h:1188:70: error: ‘my_cond_timedwait’ was not declared in this scope
result= my_cond_timedwait(&that->m_cond, &mutex->m_mutex, abstime);
^
/usr/include/mysql/mysql/psi/mysql_thread.h:1199:68: error: ‘my_cond_timedwait’ was not declared in this scope
result= my_cond_timedwait(&that->m_cond, &mutex->m_mutex, abstime);
^
In file included from /opt/projects/c++/cbs/cbs/product.cpp:1:0:
/usr/include/c++/4.8.2/bits/stl_algobase.h: At global scope:
/usr/include/c++/4.8.2/bits/stl_algobase.h:193:5: error: expected unqualified-id before ‘const’
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:193:5: error: expected ‘)’ before ‘const’
/usr/include/c++/4.8.2/bits/stl_algobase.h:193:5: error: expected ‘)’ before ‘const’
/usr/include/c++/4.8.2/bits/stl_algobase.h:193:5: error: expected initializer before ‘const’
/usr/include/c++/4.8.2/bits/stl_algobase.h:216:5: error: expected unqualified-id before ‘const’
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:216:5: error: expected ‘)’ before ‘const’
/usr/include/c++/4.8.2/bits/stl_algobase.h:216:5: error: expected ‘)’ before ‘const’
/usr/include/c++/4.8.2/bits/stl_algobase.h:216:5: error: expected initializer before ‘const’
In file included from /usr/include/c++/4.8.2/bits/char_traits.h:39:0,
from /usr/include/c++/4.8.2/ios:40,
from /usr/include/c++/4.8.2/ostream:38,
from /usr/include/c++/4.8.2/iostream:39,
from /opt/projects/c++/cbs/cbs/draw.h:4,
from /opt/projects/c++/cbs/cbs/product.h:7,
from /opt/projects/c++/cbs/cbs/product.cpp:2:
/usr/include/c++/4.8.2/bits/stl_algobase.h:239:5: error: ‘std::min’ declared as an ‘inline’ variable
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:239:5: error: template declaration of ‘const _Tp& std::min’
/usr/include/c++/4.8.2/bits/stl_algobase.h:242:7: error: expected primary-expression before ‘if’
if (__comp(__b, __a))
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:242:7: error: expected ‘}’ before ‘if’
/usr/include/c++/4.8.2/bits/stl_algobase.h:244:7: error: expected unqualified-id before ‘return’
return __a;
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:260:5: error: ‘max’ declared as an ‘inline’ variable
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:260:5: error: template declaration of ‘const _Tp& max’
/usr/include/c++/4.8.2/bits/stl_algobase.h:263:7: error: expected primary-expression before ‘if’
if (__comp(__a, __b))
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:263:7: error: expected ‘}’ before ‘if’
/usr/include/c++/4.8.2/bits/stl_algobase.h:265:7: error: expected unqualified-id before ‘return’
return __a;
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:266:5: error: expected declaration before ‘}’ token
}
^
Process terminated with status 1 (0 minute(s), 0 second(s))
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:260:56: error: macro "max" passed 3 arguments, but takes just 2
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
In file included from /usr/include/c++/4.8.2/bits/stl_algo.h:60:0,
from /usr/include/c++/4.8.2/algorithm:62,
from /opt/projects/c++/cbs/cbs/main.cpp:2:
/usr/include/c++/4.8.2/bits/algorithmfwd.h:360:41: error: macro "max" passed 3 arguments, but takes just 2
max(const _Tp&, const _Tp&, _Compare);
^
/usr/include/c++/4.8.2/bits/algorithmfwd.h:371:41: error: macro "min" passed 3 arguments, but takes just 2
min(const _Tp&, const _Tp&, _Compare);
^
/usr/include/c++/4.8.2/bits/algorithmfwd.h:394:30: error: macro "min" requires 2 arguments, but only 1 given
min(initializer_list<_Tp>);
^
/usr/include/c++/4.8.2/bits/algorithmfwd.h:402:30: error: macro "max" requires 2 arguments, but only 1 given
max(initializer_list<_Tp>);
^
In file included from /usr/include/c++/4.8.2/random:50:0,
from /usr/include/c++/4.8.2/bits/stl_algo.h:65,
from /usr/include/c++/4.8.2/algorithm:62,
from /opt/projects/c++/cbs/cbs/main.cpp:2:
/usr/include/c++/4.8.2/bits/random.h:173:6: error: macro "min" requires 2 arguments, but only 1 given
min() const
^
/usr/include/c++/4.8.2/bits/random.h:177:6: error: macro "max" requires 2 arguments, but only 1 given
max() const
^
/usr/include/c++/4.8.2/bits/random.h:311:11: error: macro "min" requires 2 arguments, but only 1 given
min()
^
/usr/include/c++/4.8.2/bits/random.h:318:11: error: macro "max" requires 2 arguments, but only 1 given
max()
^
/usr/include/c++/4.8.2/bits/random.h:527:11: error: macro "min" requires 2 arguments, but only 1 given
min()
^
/usr/include/c++/4.8.2/bits/random.h:534:11: error: macro "max" requires 2 arguments, but only 1 given
max()
^
/usr/include/c++/4.8.2/bits/random.h:736:11: error: macro "min" requires 2 arguments, but only 1 given
min()
^
/usr/include/c++/4.8.2/bits/random.h:744:11: error: macro "max" requires 2 arguments, but only 1 given
max()
^
/usr/include/c++/4.8.2/bits/random.h:966:11: error: macro "min" requires 2 arguments, but only 1 given
min()
^
/usr/include/c++/4.8.2/bits/random.h:967:41: error: macro "min" requires 2 arguments, but only 1 given
{ return _RandomNumberEngine::min(); }
^
/usr/include/c++/4.8.2/bits/random.h:973:11: error: macro "max" requires 2 arguments, but only 1 given
max()
^
/usr/include/c++/4.8.2/bits/random.h:974:41: error: macro "max" requires 2 arguments, but only 1 given
{ return _RandomNumberEngine::max(); }
^
/usr/include/c++/4.8.2/bits/random.h:1175:11: error: macro "min" requires 2 arguments, but only 1 given
min()
^
/usr/include/c++/4.8.2/bits/random.h:1182:11: error: macro "max" requires 2 arguments, but only 1 given
max()
^
/usr/include/c++/4.8.2/bits/random.h:1405:11: error: macro "min" requires 2 arguments, but only 1 given
min()
^
/usr/include/c++/4.8.2/bits/random.h:1406:41: error: macro "min" requires 2 arguments, but only 1 given
{ return _RandomNumberEngine::min(); }
^
/usr/include/c++/4.8.2/bits/random.h:1412:11: error: macro "max" requires 2 arguments, but only 1 given
max()
^
/usr/include/c++/4.8.2/bits/random.h:1413:41: error: macro "max" requires 2 arguments, but only 1 given
Process terminated with status 1 (0 minute(s), 0 second(s))
50 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Process terminated with status 1 (0 minute(s), 0 second(s))
50 error(s), 0 warning(s) (0 minute(s), 0 second(s))