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

something wrong when running mcg_build in windows #21

Open
Tanghaocheng opened this issue Apr 2, 2016 · 2 comments
Open

something wrong when running mcg_build in windows #21

Tanghaocheng opened this issue Apr 2, 2016 · 2 comments

Comments

@Tanghaocheng
Copy link

mex_contour_sides.cpp
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1277) : error C3771:
'resize' : friend declaration cannot be found in the nearest namespace scope
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1610) : see
reference to class template instantiation 'math::matrices::matrix<T,Syn>' being compiled
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1277) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1277) : error C2460:
'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1277) : error C2433:
'math::matrices::resize' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1277) : error C2365:
'math::matrices::resize' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1280) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1282) : error C3771:
'resize' : friend declaration cannot be found in the nearest namespace scope
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1282) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1282) : error C2460:
'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1282) : error C2433:
'math::matrices::resize' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1282) : error C2365:
'math::matrices::resize' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1286) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1292) : error C3771:
'resize' : friend declaration cannot be found in the nearest namespace scope
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1292) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1292) : error C2460:
'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1292) : error C2433:
'math::matrices::resize' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1292) : error C2365:
'math::matrices::resize' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1296) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1298) : error C3771:
'resize' : friend declaration cannot be found in the nearest namespace scope
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1298) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1298) : error C2460:
'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1298) : error C2433:
'math::matrices::resize' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1298) : error C2365:
'math::matrices::resize' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1303) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1310) : error C3771:
'resize' : friend declaration cannot be found in the nearest namespace scope
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1310) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1310) : error C2460:
'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1310) : error C2433:
'math::matrices::resize' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1310) : error C2365:
'math::matrices::resize' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1313) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1315) : error C3771:
'resize' : friend declaration cannot be found in the nearest namespace scope
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1315) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1315) : error C2460:
'math::matrices::resize' : uses 'math::matrices::matrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1315) : error C2433:
'math::matrices::resize' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1315) : error C2365:
'math::matrices::resize' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/matrix.hh(1319) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(903) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(1638) : see
reference to class template instantiation 'math::matrices::cmatrix<T,Syn>' being compiled
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(903) : error C2460:
'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(903) : error C2433:
'math::matrices::+' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(903) : error C2365:
'math::matrices::operator +' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(903) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(904) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(904) : error C2460:
'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(904) : error C2433:
'math::matrices::-' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(904) : error C2365:
'math::matrices::operator -' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(904) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(908) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(908) : error C2460:
'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(908) : error C2433:
'math::matrices::+' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(908) : error C2365:
'math::matrices::operator +' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(908) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(909) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(909) : error C2460:
'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(909) : error C2433:
'math::matrices::-' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(909) : error C2365:
'math::matrices::operator -' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(909) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(917) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(917) : error C2460:
'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(917) : error C2433:
'math::matrices::+' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(917) : error C2365:
'math::matrices::operator +' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(917) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(919) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(919) : error C2460:
'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(919) : error C2433:
'math::matrices::-' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(919) : error C2365:
'math::matrices::operator -' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(919) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(926) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(926) : error C2460:
'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(926) : error C2433:
'math::matrices::+' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(926) : error C2365:
'math::matrices::operator +' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(926) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(928) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(928) : error C2460:
'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(928) : error C2433:
'math::matrices::-' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(928) : error C2365:
'math::matrices::operator -' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(928) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(938) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(938) : error C2460:
'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(938) : error C2433:
'math::matrices::+' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(938) : error C2365:
'math::matrices::operator +' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(938) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(940) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(940) : error C2460:
'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(940) : error C2433:
'math::matrices::-' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(940) : error C2365:
'math::matrices::operator -' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(940) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(947) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(947) : error C2460:
'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(947) : error C2433:
'math::matrices::+' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(947) : error C2365:
'math::matrices::operator +' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(947) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(949) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(949) : error C2460:
'math::matrices::-' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(949) : error C2433:
'math::matrices::-' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(949) : error C2365:
'math::matrices::operator -' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(949) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : error C2143:
syntax error : missing ';' before '<'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : error C2460:
'math::matrices::+' : uses 'math::matrices::cmatrix<T,Syn>', which is being defined
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : error C2433:
'math::matrices::+' : 'friend' not permitted on data declarations
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : error C2365:
'math::matrices::operator +' : redefinition; previous definition was 'function'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : error C2238:
unexpected token(s) preceding ';'
E:\R-cnn\eccv14-code\mcg\src_windows\external\BSR\include\math/matrices/cmatrix.hh(959) : fatal error
C1003: error count exceeds 100; stopping compilation

出错 mcg_build (line 102)
eval(['mex ' fullfile(mcg_root_dir, 'src_windows', 'bsr', 'mex_contour_sides.cpp') ' -outdir '
fullfile(mcg_root_dir, 'lib'),...

@Tanghaocheng Tanghaocheng changed the title Something wrong when compile imagestack use cygwin on windows something wrong when running mcg_build in windows Apr 5, 2016
@WeiJiaUSTC
Copy link

Have you solved this problem? I met with the same problem...

@victordefoe
Copy link

Same error for me

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

3 participants