newb can't make it go

David Gravereaux davygrvy at pobox.com
Thu Apr 26 21:18:27 UTC 2007


Am I doing this right?  Here's my first source, that is completely empty thus far:

---- vsiplCmds.cpp ----

/* TASP VSIPL Core Plus v0.85 */
#include <vsip.h>
#pragma comment(lib, "vsip.lib")

/* Sourcery VSIPL++ v1.3 */
#include <vsip/core/vsip.hpp>
#pragma comment(lib, "libsvpp.lib")

/* Project header file */
#include "tpscope.h"

---- end ----

Compiler is "Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86"  aka MSVC++ 6.0 IDE.  The errors I get are the following just trying to
compile the empty source:

--------------------Configuration: tpscope - Win32 Release--------------------
Compiling...
vsiplCmds.cpp
SourceryVSIPL++/include\vsip/support.hpp(186) : error C2258: illegal pure syntax,
must be '= 0'
        SourceryVSIPL++/include\vsip/support.hpp(189) : see reference to class
template instantiation 'vsip::tuple<dim0,dim1,dim2>' being compiled
SourceryVSIPL++/include\vsip/support.hpp(186) : error C2252: 'impl_dim0' : pure
specifier can only be specified for functions
        SourceryVSIPL++/include\vsip/support.hpp(189) : see reference to class
template instantiation 'vsip::tuple<dim0,dim1,dim2>' being compiled
SourceryVSIPL++/include\vsip/support.hpp(187) : error C2258: illegal pure syntax,
must be '= 0'
        SourceryVSIPL++/include\vsip/support.hpp(189) : see reference to class
template instantiation 'vsip::tuple<dim0,dim1,dim2>' being compiled
SourceryVSIPL++/include\vsip/support.hpp(187) : error C2252: 'impl_dim1' : pure
specifier can only be specified for functions
        SourceryVSIPL++/include\vsip/support.hpp(189) : see reference to class
template instantiation 'vsip::tuple<dim0,dim1,dim2>' being compiled
SourceryVSIPL++/include\vsip/support.hpp(188) : error C2258: illegal pure syntax,
must be '= 0'
        SourceryVSIPL++/include\vsip/support.hpp(189) : see reference to class
template instantiation 'vsip::tuple<dim0,dim1,dim2>' being compiled
SourceryVSIPL++/include\vsip/support.hpp(188) : error C2252: 'impl_dim2' : pure
specifier can only be specified for functions
        SourceryVSIPL++/include\vsip/support.hpp(189) : see reference to class
template instantiation 'vsip::tuple<dim0,dim1,dim2>' being compiled
SourceryVSIPL++/include\vsip/core/refcount.hpp(264) : error C2989: 'Mutable<Obj>'
: template class has already been defined as a non-template class
SourceryVSIPL++/include\vsip/core/refcount.hpp(264) : error C2908: explicit
specialization; 'Mutable<Obj>' has already been instantiated from the primary template
SourceryVSIPL++/include\vsip/core/refcount.hpp(264) : error C2988: unrecognizable
template declaration/definition
SourceryVSIPL++/include\vsip/core/vertex.hpp(43) : error C2989: 'Vertex<T,1>' :
template class has already been defined as a non-template class
SourceryVSIPL++/include\vsip/core/vertex.hpp(43) : warning C4099: 'Vertex<T,1>' :
type name first seen using 'struct' now seen using 'class'
SourceryVSIPL++/include\vsip/core/vertex.hpp(43) : error C2988: unrecognizable
template declaration/definition
SourceryVSIPL++/include\vsip/core/vertex.hpp(58) : error C2989: 'Vertex<T,2>' :
template class has already been defined as a non-template class
SourceryVSIPL++/include\vsip/core/vertex.hpp(58) : warning C4099: 'Vertex<T,2>' :
type name first seen using 'struct' now seen using 'class'
SourceryVSIPL++/include\vsip/core/vertex.hpp(58) : error C2988: unrecognizable
template declaration/definition
SourceryVSIPL++/include\vsip/core/vertex.hpp(73) : error C2989: 'Vertex<T,3>' :
template class has already been defined as a non-template class
SourceryVSIPL++/include\vsip/core/vertex.hpp(73) : warning C4099: 'Vertex<T,3>' :
type name first seen using 'struct' now seen using 'class'
SourceryVSIPL++/include\vsip/core/vertex.hpp(73) : error C2988: unrecognizable
template declaration/definition
SourceryVSIPL++/include\vsip/core/vertex.hpp(77) : error C2039: '__ctor' : is not
a member of 'Vertex<T,2>'
        SourceryVSIPL++/include\vsip/core/vertex.hpp(58) : see declaration of
'Vertex<T,2>'
SourceryVSIPL++/include\vsip/core/vertex.hpp(77) : error C2935: 'Vertex<T,2>' :
template-class-id redefined as a global function
        SourceryVSIPL++/include\vsip/core/vertex.hpp(58) : see declaration of
'Vertex<T,2>'
SourceryVSIPL++/include\vsip/core/vertex.hpp(85) : error C2039: '[]' : is not a
member of 'Vertex<T,2>'
        SourceryVSIPL++/include\vsip/core/vertex.hpp(58) : see declaration of
'Vertex<T,2>'
SourceryVSIPL++/include\vsip/core/vertex.hpp(89) : error C2270: '[]' : modifiers
not allowed on nonmember functions
SourceryVSIPL++/include\vsip/core/vertex.hpp(93) : error C2039: '[]' : is not a
member of 'Vertex<T,2>'
        SourceryVSIPL++/include\vsip/core/vertex.hpp(58) : see declaration of
'Vertex<T,2>'
SourceryVSIPL++/include\vsip/core/vertex.hpp(101) : error C2039: '__ctor' : is not
a member of 'Vertex<T,3>'
        SourceryVSIPL++/include\vsip/core/vertex.hpp(73) : see declaration of
'Vertex<T,3>'
SourceryVSIPL++/include\vsip/core/vertex.hpp(101) : error C2935: 'Vertex<T,3>' :
template-class-id redefined as a global function
        SourceryVSIPL++/include\vsip/core/vertex.hpp(73) : see declaration of
'Vertex<T,3>'
SourceryVSIPL++/include\vsip/core/vertex.hpp(110) : error C2039: '[]' : is not a
member of 'Vertex<T,3>'
        SourceryVSIPL++/include\vsip/core/vertex.hpp(73) : see declaration of
'Vertex<T,3>'
SourceryVSIPL++/include\vsip/core/vertex.hpp(114) : error C2270: '[]' : modifiers
not allowed on nonmember functions
SourceryVSIPL++/include\vsip/core/vertex.hpp(114) : error C2995: '[]' : template
function has already been defined
        SourceryVSIPL++/include\vsip/core/vertex.hpp(85) : see declaration of '[]'
SourceryVSIPL++/include\vsip/core/vertex.hpp(118) : error C2039: '[]' : is not a
member of 'Vertex<T,3>'
        SourceryVSIPL++/include\vsip/core/vertex.hpp(73) : see declaration of
'Vertex<T,3>'
SourceryVSIPL++/include\vsip/core/vertex.hpp(122) : error C2995: '[]' : template
function has already been defined
        SourceryVSIPL++/include\vsip/core/vertex.hpp(93) : see declaration of '[]'
SourceryVSIPL++/include\vsip/core/vertex.hpp(146) : error C2061: syntax error :
identifier 'Vertex<`template-parameter257',2>'
SourceryVSIPL++/include\vsip/core/vertex.hpp(150) : error C2809: 'operator ==' has
no formal parameters
SourceryVSIPL++/include\vsip/core/vertex.hpp(152) : error C2954: template
definitions cannot nest
SourceryVSIPL++/include\vsip/core/vertex.hpp(154) : error C2061: syntax error :
identifier 'Vertex<`template-parameter257',2>'
SourceryVSIPL++/include\vsip/core/vertex.hpp(158) : error C2809: 'operator !=' has
no formal parameters
SourceryVSIPL++/include\vsip/core/vertex.hpp(160) : error C2954: template
definitions cannot nest
SourceryVSIPL++/include\vsip/core/vertex.hpp(162) : error C2061: syntax error :
identifier 'Vertex<`template-parameter257',3>'
SourceryVSIPL++/include\vsip/core/vertex.hpp(170) : error C2954: template
definitions cannot nest
SourceryVSIPL++/include\vsip/core/vertex.hpp(172) : error C2061: syntax error :
identifier 'Vertex<`template-parameter257',3>'
SourceryVSIPL++/include\vsip/domain.hpp(25) : error C2954: template definitions
cannot nest
SourceryVSIPL++/include\vsip/domain.hpp(27) : warning C4099: 'Index<1>' : type
name first seen using 'struct' now seen using 'class'
SourceryVSIPL++/include\vsip/domain.hpp(28) : error C2504: 'Vertex<unsigned
int,1>' : base class undefined
SourceryVSIPL++/include\vsip/domain.hpp(31) : error C2955: 'Index' : use of class
template requires template argument list
        SourceryVSIPL++/include\vsip/domain.hpp(25) : see declaration of 'Index'
SourceryVSIPL++/include\vsip/domain.hpp(31) : error C2912: explicit
specialization; 'struct vsip::Index<1> __cdecl vsip::Index(unsigned int)' is not a
function template
        SourceryVSIPL++/include\vsip/domain.hpp(31) : see declaration of 'Index'
SourceryVSIPL++/include\vsip/domain.hpp(31) : error C2912: explicit
specialization; 'struct vsip::Index<1> __cdecl vsip::Index(unsigned int)' is not a
function template
        SourceryVSIPL++/include\vsip/domain.hpp(31) : see declaration of 'Index'
SourceryVSIPL++/include\vsip/domain.hpp(31) : error C2550: 'Index' : constructor
initializer lists are only allowed on constructor definitions
SourceryVSIPL++/include\vsip/domain.hpp(36) : error C2061: syntax error :
identifier 'dimension_type'
SourceryVSIPL++/include\vsip/domain.hpp(38) : error C2061: syntax error :
identifier 'Index'
SourceryVSIPL++/include\vsip/domain.hpp(44) : error C2809: 'operator ==' has no
formal parameters
SourceryVSIPL++/include\vsip/domain.hpp(54) : fatal error C1903: unable to recover
from previous error(s); stopping compilation
Error executing cl.exe.

vsiplCmds.obj - 46 error(s), 4 warning(s)


Am I not setting the proper macros for compiling because I'm not using a GNU
environment, or is a C++ conformance thingie?

-- 
   "The dynamics of inter-being and mono logical imperatives in Dick and Jane :
A study in psychic transrelational gender modes". Academia, here I come.
		  -- Calvin



More information about the vsipl++ mailing list