Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid use of incomplete type ‘struct shogun::TParameter’ #3211

Closed
arianepaola opened this issue May 27, 2016 · 4 comments
Closed

Invalid use of incomplete type ‘struct shogun::TParameter’ #3211

arianepaola opened this issue May 27, 2016 · 4 comments

Comments

@arianepaola
Copy link
Contributor

Latest develop, building on Ubuntu 16.04

Building CXX object src/shogun/CMakeFiles/libshogun.dir/base/class_list.cpp.o
FAILED: /usr/bin/ccache /usr/bin/c++ -I../src -I../src/shogun -Isrc -Isrc/shogun -isystem /usr/include/eigen3 -I/usr/include/atlas -I/usr/include/libxml2 -I/usr/include/hdf5/serial -std=c++11 -Wall -Wno-unused-parameter -Wformat -Wformat-security -Wparentheses -Wshadow -Wno-unknown-pragmas -Wno-deprecated -fopenmp -O3 -fexpensive-optimizations -frerun-cse-after-loop -fcse-follow-jumps -finline-functions -fschedule-insns2 -fthread-jumps -fforce-addr -fstrength-reduce -funroll-loops -mfpmath=sse -fPIC -MMD -MT src/shogun/CMakeFiles/libshogun.dir/base/class_list.cpp.o -MF src/shogun/CMakeFiles/libshogun.dir/base/class_list.cpp.o.d -o src/shogun/CMakeFiles/libshogun.dir/base/class_list.cpp.o -c ../src/shogun/base/class_list.cpp
In file included from ../src/shogun/base/class_list.cpp:15:0:
../src/shogun/evaluation/GradientResult.h: In member function ‘virtual void shogun::CGradientResult::print_result()’:
../src/shogun/evaluation/GradientResult.h:103:42: error: invalid use of incomplete type ‘struct shogun::TParameter’
const char* param_name=param_node->key->m_name;
^
In file included from ../src/shogun/evaluation/EvaluationResult.h:15:0,
from ../src/shogun/evaluation/GradientResult.h:16,
from ../src/shogun/base/class_list.cpp:15:
../src/shogun/base/SGObject.h:38:8: note: forward declaration of ‘struct shogun::TParameter’
struct TParameter;
^

@vigsterkr
Copy link
Member

this is interesting.... as the buildbot is working. compiler version?

arianepaola added a commit to arianepaola/shogun that referenced this issue May 27, 2016
@arianepaola
Copy link
Contributor Author

Ubuntu 16.04
g++ --version
g++ (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413

@vigsterkr
Copy link
Member

@arianepaola
Copy link
Contributor Author

Python modular is turned on.

cmake -GNinja -DENABLE_TESTING=ON -DPythonModular=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="./install" ..
ninja GoogleMock && ninja all && ninja install && ninja test

karlnapf added a commit that referenced this issue May 29, 2016
Fixes #3211 Invalid use of incomplete type ‘struct shogun::TParameter’
OXPHOS pushed a commit to OXPHOS/shogun that referenced this issue May 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants