Overview
Features
Download
Documentation
Community
Add-Ons & Services

poco 1.51 does not build wih gcc-4.8 and std=c++11

Please post support and help requests here.

poco 1.51 does not build wih gcc-4.8 and std=c++11

Postby killerbot » 31 Mar 2013, 23:30

- note :
gcc47 and std=c++11 => OK
gcc48 => OK

Code: Select all
In file included from src/VarHolder.cpp:38:0:
include/Poco/Dynamic/Var.h: In instantiation of ‘Poco::Dynamic::VarHolderImpl<T>* Poco::Dynamic::Var::holderImpl(std::string) const [with T = Poco::Dynamic::Struct<int>; E = Poco::InvalidAccessException; std::string = std::basic_string<char>]’:
include/Poco/Dynamic/Var.h:438:44:   required from here
include/Poco/Dynamic/Var.h:539:36: error: invalid use of incomplete type ‘class Poco::Dynamic::Struct<int>’
   if (_pHolder && _pHolder->type() == typeid(T))
                                    ^
include/Poco/Dynamic/Var.h:54:7: error: declaration of ‘class Poco::Dynamic::Struct<int>’
 class Struct;
       ^
In file included from src/VarHolder.cpp:37:0:
include/Poco/Dynamic/VarHolder.h: In instantiation of ‘class Poco::Dynamic::VarHolderImpl<Poco::Dynamic::Struct<int> >’:
include/Poco/Dynamic/Var.h:540:50:   required from ‘Poco::Dynamic::VarHolderImpl<T>* Poco::Dynamic::Var::holderImpl(std::string) const [with T = Poco::Dynamic::Struct<int>; E = Poco::InvalidAccessException; std::string = std::basic_string<char>]’
include/Poco/Dynamic/Var.h:438:44:   required from here
include/Poco/Dynamic/VarHolder.h:551:4: error: ‘Poco::Dynamic::VarHolderImpl<T>::_val’ has incomplete type
  T _val;
    ^
In file included from src/VarHolder.cpp:38:0:
include/Poco/Dynamic/Var.h:54:7: error: declaration of ‘class Poco::Dynamic::Struct<int>’
 class Struct;
       ^
killerbot
 
Posts: 66
Joined: 03 Dec 2009, 12:55

Re: poco 1.51 does not build wih gcc-4.8 and std=c++11

Postby killerbot » 10 Apr 2013, 23:18

is this going to be addressed and fix available in 1.5.2 ?
killerbot
 
Posts: 66
Joined: 03 Dec 2009, 12:55

Re: poco 1.51 does not build wih gcc-4.8 and std=c++11

Postby alex » 11 Apr 2013, 17:57

if you have a specific problem with certain platform/compiler your chances to get things fixed increase greatly if you submit a fix (preferably a github pull request)
alex
 
Posts: 1103
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: poco 1.51 does not build wih gcc-4.8 and std=c++11

Postby killerbot » 11 Apr 2013, 19:23

correct, but maybe this one is trivial for you instead of me first finding out how it all fits together, I see what I can do ...
killerbot
 
Posts: 66
Joined: 03 Dec 2009, 12:55

Re: poco 1.51 does not build wih gcc-4.8 and std=c++11

Postby killerbot » 18 Apr 2013, 00:11

I gave it a try, but got overwhelmed by the template stuff (and errors), maybe I should a read bit more in the slide of the dynamic any presentation ;-)

But on the other hand, now that poco dynamic got some exposure, it would be good that at least it builds with gcc-4.8 and c+11 standard, so I feel this is more something for the poco dynamic gurus.

Note : it also triggers a lot of warnings (even with gcc-4.7) : Eg in Struct.h a whole lot of unused variables, typically the VarHolderImp methods with the val argument (which i not used since they just throw)
killerbot
 
Posts: 66
Joined: 03 Dec 2009, 12:55

Re: poco 1.51 does not build wih gcc-4.8 and std=c++11

Postby alex » 21 Apr 2013, 15:45

killerbot wrote:now that poco dynamic got some exposure, it would be good that at least it builds with gcc-4.8 and c+11 standard, so I feel this is more something for the poco dynamic gurus.

GCC wrote:GCC provides experimental support for the 2011 ISO C++ standard.

I'm not saying we won't look into it eventually if it persists, but let's give those guys some time to sort things out. I mean, all other compilers (including earlier versions of gcc) compile it fine, right?

killerbot wrote:Note : it also triggers a lot of warnings (even with gcc-4.7) : Eg in Struct.h a whole lot of unused variables, typically the VarHolderImp methods with the val argument (which i not used since they just throw)

Commenting variable names to eliminate warnings would make a fine pull request; please consider, we need all the help we can get and small things like that count as well.
alex
 
Posts: 1103
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: poco 1.51 does not build wih gcc-4.8 and std=c++11

Postby killerbot » 13 Jun 2013, 23:51

tested this again with :
+ poco-1.5.2-rc1
+ gcc 4.8.1

NO problems :-)
killerbot
 
Posts: 66
Joined: 03 Dec 2009, 12:55


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests