I'm new to C++ and programming in general. My first task was to convert an old C based program to C++.
The program contains about 18 or so include files. I've fixed all of the compile errors except the following:
[C++Error] resmi.cpp(27): Body has already been defined for function 'resmi(char *,int)'.
[C++Error] resmi.cpp(27): VIRDEF name conflict for 'resmi(char *,int)'.
I believe this has something to do with the way the files are included. The main page declares the following prototype:
void resmi(char *,int);
later in the code it calls
resmi(redone,SMLN);
Here's the beginning or resmi.cpp/
void resmi (char *smil,int smilen)
{
This is where the error is happening , specifically it highlights the line the curly bracket is on. Does anyone have any ideas or advice on what the problem is?
The program contains about 18 or so include files. I've fixed all of the compile errors except the following:
[C++Error] resmi.cpp(27): Body has already been defined for function 'resmi(char *,int)'.
[C++Error] resmi.cpp(27): VIRDEF name conflict for 'resmi(char *,int)'.
I believe this has something to do with the way the files are included. The main page declares the following prototype:
void resmi(char *,int);
later in the code it calls
resmi(redone,SMLN);
Here's the beginning or resmi.cpp/
void resmi (char *smil,int smilen)
{
This is where the error is happening , specifically it highlights the line the curly bracket is on. Does anyone have any ideas or advice on what the problem is?