P
Peter _Grafenberger
hi,
i've some troubles compiling Bjarne Strostrup's Matrix class example
http://www.research.att.com/~bs/matrix.c
under ms visual c++ 6.0 (sp4). i get a lot off errors like
matrix_klasse_by_stroustup.cxx(37) : error C2143: Syntaxfehler :
Missing ';' before '<'
for code like
friend bool operator==<>(const Slice_iter& p, const Slice_iter& q);
-- 60 errors in total --
when i compile it on linux (with gcc 3.3) or on sgi everything is fine
and with intel c++ (win) i get only 3 errors for redefining a variable
(which seems to be right?!) and after removing this it is also fine.
do i miss a compiler flag or is there a general problem with ms vc++
6.0 (and if so is it also present in version 7.0)
kind regards
peter
------------------------------------------------------------------------
p.s: compiler flags:
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no
/pdb:"Release/simple_tests.pdb" /machine:I386
/out:"Release/simple_tests.exe"
i've some troubles compiling Bjarne Strostrup's Matrix class example
http://www.research.att.com/~bs/matrix.c
under ms visual c++ 6.0 (sp4). i get a lot off errors like
matrix_klasse_by_stroustup.cxx(37) : error C2143: Syntaxfehler :
Missing ';' before '<'
for code like
friend bool operator==<>(const Slice_iter& p, const Slice_iter& q);
-- 60 errors in total --
when i compile it on linux (with gcc 3.3) or on sgi everything is fine
and with intel c++ (win) i get only 3 errors for redefining a variable
(which seems to be right?!) and after removing this it is also fine.
do i miss a compiler flag or is there a general problem with ms vc++
6.0 (and if so is it also present in version 7.0)
kind regards
peter
------------------------------------------------------------------------
p.s: compiler flags:
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no
/pdb:"Release/simple_tests.pdb" /machine:I386
/out:"Release/simple_tests.exe"