I'm attempting to write code for an ATxmega16E5 using Atmel Studio 7. I've had a long search around the forums and cannot make head nor tail of the other suggestions that seem to be similar to my own issue. (A lot of suggestions indicate to change compiling options, which I have no idea how to do this in Atmel Studio).
Basically, I've included my class GPP.h BUT, when I try to instantiate a class in main.cpp it comes back as a series of undefined references to all functions including the constructor.
EDIT: Reduced the amount of included code to focus on the main issues at hand, mainly, the files don't seem to be linking.
main.cpp :
//INCLUDES
#include "GPP.h"
//MAIN FUNCTION
int main()
{
GPP *gpp = new GPP();
//Turn on system power
gpp->setPowerPin();
gpp->screenOn();
// ...etc (just makes some function calls
// ...
while(1);
}
GPP.h:
#ifndef GPOWERPACK_H
#define GPOWERPACK_H
class GPP
{
public:
GPP();
//~GPP();
void setPowerPin();
void screenOn();
void SPI_Init();
void SPI_SendNext();
void displayLogo();
};
#endif
Any help would be fantastic to help grow my understanding of cpp. I have coded in c and java previously.
Atmel Makefile is quite long, Could display sections on request?