The error messages I'm getting look like this:
vli.o: In function `VLI::read(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
vlifunctions.cpp:(.text+0x0): multiple definition of `VLI::read(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
project4B.o:project4B.cpp:(.text+0x150): first defined here
vli.o: In function `VLI::execute(char)':
vlifunctions.cpp:(.text+0xc): multiple definition of `VLI::execute(char)'
project4B.o:project4B.cpp:(.text+0x15c): first defined here
But I'm basically getting one for each function. Also, the sequence.h file starts like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
/******************************************************************************
Example #32 -- Interface file for type "Sequence" (array version)
******************************************************************************/
#ifndef SEQUENCE_
#define SEQUENCE_
typedef int EType;
/*-----------------------------------------------------------------------------
Type "Sequence" represents an unordered sequence of N items (in positions 0
to N-1), where each item is of type "EType". Duplicate items are allowed.
Type "EType" must support "operator=()" and "operator==()".
-----------------------------------------------------------------------------*/
class Sequence
{
public:
// Initialize the sequence
//
Sequence();
// De-initialize the sequence
//
~Sequence();
// Re-initialize the sequence
//
void reset();
// Initialize the sequence by copying an existing sequence
//
Sequence( const Sequence& Source );
|
And so on, defining the functions that go into the class Sequence that I'm using in my VLI class.