Thanks I will give it a try with clang.
Tom
Posts by tompeters
-
-
Hi Marcel
Try this (vmware) - could it be due to gcc7 being standard?
http://www.osboxes.org/fedora/#fedora-26-vmwareBW tom
-
....and yes its gcc....
-
Hi Marcel
thank you for any help (see below) - sorry I do not know collega!Best Wishes
Tom-----------------------------------
/usr/include/c++/7/bits/stl_algobase.h:243: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/jpeglib.h:31:0,
from ./src/dgate/src/jpegconv.hpp:63,
from ./src/dgate/src/nkiqrsop.cpp:267,
from ./src/dgate/src/total.cpp:148:
/usr/include/jmorecfg.h:179:14: error: conflicting declaration ‘typedef long int INT32’
typedef long INT32;
^~~~~
In file included from ./src/dgate/dicomlib/base.hpp:61:0,
from ./src/dgate/dicomlib/dicom.hpp:50,
from ./src/dgate/dicomlib/qrsop.cxx:52,
from ./src/dgate/src/total.cpp:116:
./src/dgate/dicomlib/cctypes.h:112:13: note: previous declaration as ‘typedef int INT32’
typedef int INT32; /* Most likely */
^~~~~
In file included from ./src/dgate/src/total.cpp:148:0:
./src/dgate/src/nkiqrsop.cpp: In function ‘BOOL ToJPGStrip(DICOMDataObject**, char*, int, int, int, int, unsigned int, int, int)’:
./src/dgate/src/nkiqrsop.cpp:5811:11: error: ‘struct jpeg_compress_struct’ has no member named ‘data_precision_other’; did you mean ‘data_precision’?
cinfo.data_precision_other = cinfo.data_precision;
^~~~~~~~~~~~~~~~~~~~
data_precision
In file included from ./src/dgate/src/total.cpp:142:0:
/usr/include/c++/7/bits/stl_algobase.h: At global scope:
/usr/include/c++/7/bits/stl_algobase.h:195:5: error: expected unqualified-id before ‘const’
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/7/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’
/usr/include/c++/7/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’
/usr/include/c++/7/bits/stl_algobase.h:195:5: error: expected initializer before ‘const’
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ./src/dgate/charls/publictypes.h:10,
from ./src/dgate/charls/interface.h:9,
from ./src/dgate/src/jpegconv.cpp:47,
from ./src/dgate/src/total.cpp:157:
/usr/include/c++/7/bits/stl_algobase.h:246:7: error: expected primary-expression before ‘if’
if (__comp(__b, __a))
^~
/usr/include/c++/7/bits/stl_algobase.h:246:7: error: expected ‘}’ before ‘if’
/usr/include/c++/7/bits/stl_algobase.h:246:7: error: expected ‘;’ before ‘if’
/usr/include/c++/7/bits/stl_algobase.h:248:7: error: expected unqualified-id before ‘return’
return __a;
^~~~~~
/usr/include/c++/7/bits/stl_algobase.h:315:38: error: ‘random_access_iterator_tag’ was not declared in this scope
struct __copy_move<false, false, random_access_iterator_tag>
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:315:38: note: suggested alternative:
In file included from /usr/include/c++/7/bits/stl_algobase.h:65:0,
from /usr/include/c++/7/bits/char_traits.h:39,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ./src/dgate/charls/publictypes.h:10,
from ./src/dgate/charls/interface.h:9,
from ./src/dgate/src/jpegconv.cpp:47,
from ./src/dgate/src/total.cpp:157:
/usr/include/c++/7/bits/stl_iterator_base_types.h:103:10: note: ‘std::random_access_iterator_tag’
struct random_access_iterator_tag : public bidirectional_iterator_tag { };
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ./src/dgate/charls/publictypes.h:10,
from ./src/dgate/charls/interface.h:9,
from ./src/dgate/src/jpegconv.cpp:47,
from ./src/dgate/src/total.cpp:157:
/usr/include/c++/7/bits/stl_algobase.h:315:64: error: template argument 3 is invalid
struct __copy_move<false, false, random_access_iterator_tag>
^
/usr/include/c++/7/bits/stl_algobase.h:334:37: error: ‘random_access_iterator_tag’ was not declared in this scope
struct __copy_move<true, false, random_access_iterator_tag>
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:334:37: note: suggested alternative:
In file included from /usr/include/c++/7/bits/stl_algobase.h:65:0,
from /usr/include/c++/7/bits/char_traits.h:39,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ./src/dgate/charls/publictypes.h:10,
from ./src/dgate/charls/interface.h:9,
from ./src/dgate/src/jpegconv.cpp:47,
from ./src/dgate/src/total.cpp:157:
/usr/include/c++/7/bits/stl_iterator_base_types.h:103:10: note: ‘std::random_access_iterator_tag’
struct random_access_iterator_tag : public bidirectional_iterator_tag { };
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ./src/dgate/charls/publictypes.h:10,
from ./src/dgate/charls/interface.h:9,
from ./src/dgate/src/jpegconv.cpp:47,
from ./src/dgate/src/total.cpp:157:
/usr/include/c++/7/bits/stl_algobase.h:334:63: error: template argument 3 is invalid
struct __copy_move<true, false, random_access_iterator_tag>
^
/usr/include/c++/7/bits/stl_algobase.h:353:39: error: ‘random_access_iterator_tag’ was not declared in this scope
struct __copy_move<_IsMove, true, random_access_iterator_tag>
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:353:39: note: suggested alternative:
In file included from /usr/include/c++/7/bits/stl_algobase.h:65:0,
from /usr/include/c++/7/bits/char_traits.h:39,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ./src/dgate/charls/publictypes.h:10,
from ./src/dgate/charls/interface.h:9,
from ./src/dgate/src/jpegconv.cpp:47,
from ./src/dgate/src/total.cpp:157:
/usr/include/c++/7/bits/stl_iterator_base_types.h:103:10: note: ‘std::random_access_iterator_tag’
struct random_access_iterator_tag : public bidirectional_iterator_tag { };
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ./src/dgate/charls/publictypes.h:10,
from ./src/dgate/charls/interface.h:9,
from ./src/dgate/src/jpegconv.cpp:47,
from ./src/dgate/src/total.cpp:157:
/usr/include/c++/7/bits/stl_algobase.h:353:65: error: template argument 3 is invalid
struct __copy_move<_IsMove, true, random_access_iterator_tag>
^
/usr/include/c++/7/bits/stl_algobase.h: In function ‘_OI __copy_move_a(_II, _II, _OI)’:
/usr/include/c++/7/bits/stl_algobase.h:377:24: error: expected nested-name-specifier before ‘iterator_traits’
typedef typename iterator_traits<_II>::value_type _ValueTypeI;
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:377:39: error: expected initializer before ‘<’ token
typedef typename iterator_traits<_II>::value_type _ValueTypeI;
^
/usr/include/c++/7/bits/stl_algobase.h:378:24: error: expected nested-name-specifier before ‘iterator_traits’
typedef typename iterator_traits<_OI>::value_type _ValueTypeO;
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:378:39: error: expected initializer before ‘<’ token
typedef typename iterator_traits<_OI>::value_type _ValueTypeO;
^
/usr/include/c++/7/bits/stl_algobase.h:379:24: error: expected nested-name-specifier before ‘iterator_traits’
typedef typename iterator_traits<_II>::iterator_category _Category;
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:379:39: error: expected initializer before ‘<’ token
typedef typename iterator_traits<_II>::iterator_category _Category;
^
/usr/include/c++/7/bits/stl_algobase.h:380:43: error: ‘_ValueTypeI’ does not name a type
const bool __simple = (__is_trivial(_ValueTypeI)
^~~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:381:26: error: ‘__is_pointer’ was not declared in this scope
&& __is_pointer<_II>::__value
^~~~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:381:26: note: suggested alternative:
In file included from /usr/include/c++/7/bits/stl_algobase.h:61:0,
from /usr/include/c++/7/bits/char_traits.h:39,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ./src/dgate/charls/publictypes.h:10,
from ./src/dgate/charls/interface.h:9,
from ./src/dgate/src/jpegconv.cpp:47,
from ./src/dgate/src/total.cpp:157:
/usr/include/c++/7/bits/cpp_type_traits.h:311:12: note: ‘std::__is_pointer’
struct __is_pointer
^~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ./src/dgate/charls/publictypes.h:10,
from ./src/dgate/charls/interface.h:9,
from ./src/dgate/src/jpegconv.cpp:47,
from ./src/dgate/src/total.cpp:157:
/usr/include/c++/7/bits/stl_algobase.h:381:42: error: expected primary-expression before ‘>’ token
&& __is_pointer<_II>::__value
^
/usr/include/c++/7/bits/stl_algobase.h:381:45: error: ‘::__value’ has not been declared
&& __is_pointer<_II>::__value
^~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:381:45: note: suggested alternative: ‘si_value’
&& __is_pointer<_II>::__value
^~~~~~~
si_value
/usr/include/c++/7/bits/stl_algobase.h:382:42: error: expected primary-expression before ‘>’ token
&& __is_pointer<_OI>::__value
^
/usr/include/c++/7/bits/stl_algobase.h:382:45: error: ‘::__value’ has not been declared
&& __is_pointer<_OI>::__value
^~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:382:45: note: suggested alternative: ‘si_value’
&& __is_pointer<_OI>::__value
^~~~~~~
si_value
/usr/include/c++/7/bits/stl_algobase.h:383:12: error: ‘__are_same’ was not declared in this scope
&& __are_same<_ValueTypeI, _ValueTypeO>::__value);
^~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:383:12: note: suggested alternative:
In file included from /usr/include/c++/7/bits/stl_algobase.h:61:0,
from /usr/include/c++/7/bits/char_traits.h:39,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ./src/dgate/charls/publictypes.h:10,
from ./src/dgate/charls/interface.h:9,
from ./src/dgate/src/jpegconv.cpp:47,
from ./src/dgate/src/total.cpp:157:
/usr/include/c++/7/bits/cpp_type_traits.h:95:12: note: ‘std::__are_same’
struct __are_same
^~~~~~~~~~
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from ./src/dgate/charls/publictypes.h:10,
from ./src/dgate/charls/interface.h:9,
from ./src/dgate/src/jpegconv.cpp:47,
from ./src/dgate/src/total.cpp:157:
/usr/include/c++/7/bits/stl_algobase.h:383:23: error: ‘_ValueTypeI’ was not declared in this scope
&& __are_same<_ValueTypeI, _ValueTypeO>::__value);
^~~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:385:19: error: ‘__copy_move’ is not a member of ‘std’
return std::__copy_move<_IsMove, __simple,
^~~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:385:19: note: suggested alternative:
/usr/include/c++/7/bits/stl_algobase.h:287:12: note: ‘__copy_move’
struct __copy_move
^~~~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:386:24: error: ‘_Category’ was not declared in this scope
_Category>::__copy_m(__first, __last, __result);
^~~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:386:36: error: ‘::__copy_m’ has not been declared
_Category>::__copy_m(__first, __last, __result);
^~~~~~~~
/usr/include/c++/7/bits/stl_algobase.h:386:36: note: suggested alternative: ‘__copy_move’
_Category>::__copy_m(__first, __last, __result);
^~~~~~~~
__copy_move
/usr/include/c++/7/bits/stl_algobase.h: At global scope:
/usr/include/c++/7/bits/stl_algobase.h:401:37: error: ‘__is_char’ was not declared in this scope
typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value,
^~~~~~~~~ -
Hi has anyone managed to install on Fedora (25)?
I get lots of errors which look like clashes between the stdlib and some of the code, for examples -error: macro 'min' passed 3 arguments, but takes just 2
error: conflicting declaration 'typedef long int INT32'
error: 'struct jpeg_compress_struct' has no member named 'data_precision_other'
Any ideas what has gone wrong?
Thanks Tom