Problem drawing images

Im having some problems drawing images. I don’t know if this is caused because Im a newbie at of, or maybe something is broken with my compiler.

I have 3 files: imageApp.h, imageApp.cpp, main.cpp

I guess the problem is in imageApp.cpp, because I have changed the code in this file and left the others unchanged and the application works fine. Here is a copy of my imageApp.cpp :

#include "imageApp.h"  
#include <stdio.h>  
void imageApp::setup()  
    printf("Going to load %d\n", backImage.loadImage("mouse.png"));  
    ofBackground(0, 0, 0);  
void imageApp::draw()  
    //backImage.allocate(640, 480, OF_IMAGE_COLOR);  
    ofSetColor(255, 255, 255);  
    printf("Going to draw");  
    backImage.draw(0, 0);  

I have tried several things, but nothing has worked. I start the application it just throws an error and stops.