DarkGDK project problem

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);

//Loads Images
dbLoadBitmap("treasuremap.BMP", 1); //Bitmap #1
dbLoadImage("treasure.jpg", 2); //image #2
dbLoadImage("redmark.jpg", 3); //image #3
}

void markMap(int, int)
{
//copies Bitmap #1 to the display.
dbCopyBitmap(1, 0);

//"Enter x coordinates".
dbPrint("Enter x coordinates");
firstNum = atoi(dbInput());

//"Enter Y coordinates".
dbPrint("Enter Y coordinates");
secondNum = atoi(dbInput());


//Pastes the red X on user input coordinates.
dbPasteImage( 3, firstNum, secondNum, 1);

//Pastes treasure chest image.
dbPasteImage( 2, 200, 350, 1);
}

void cleanup()
{
//Deletes all images and waits for key.
dbDeleteImage(1);
dbDeleteImage(2);
dbDeleteImage(3);
dbWaitKey();
}


Any feedback is appreciated.
Topic archived. No new replies allowed.