Hey guys, I'm making a program that draws a red X on a loaded image of a treasure map. The coordinates are based on user input. I keep getting errors that revolve around my "void markMap(int, int)" function prototype. When I remove (int, int) I get 'markMap' function does not take 0 arguments. Otherwise I get this;
unresolved external symbol "void __cdecl markMap(void)" (?markMap@@YAXXZ) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
Here's my code.
#include "DarkGDK.h"
//Function Prototypes
void Setup();
void markMap();
void cleanup();
int firstNum;
int secondNum;
void DarkGDK()
{
//Sets up color key, images, etc.
Setup();
//marks the map based on input.
markMap();
//Cleans the images from memory.
cleanup();
//waits for keypress
dbWaitKey();
}
void Setup()
{
//Sets the window title
dbSetWindowTitle("Buried Treasure");
//Sets the color key
dbSetImageColorKey(0, 255, 0);