Hi there,
I used the tutorial from the web page to set my project up. No problem there.
I prefer to have code in .cpp files and class definations in .h files.
So I took the CMyApplication and split it into those two files. At the same time I removed it from the file where I have the WinMain.
In my header file I include CapiDrawApplication.h. My header file is included a few time also.
So now I get linker errors saying things like:
MyOwnApp.obj : error LNK2005: "public: __thiscall CGapiApplication::CGapiApplication(struct _GDAPPCONFIG const &)" (??0CGapiApplication@@QAE@ABU_GDAPPCONFIG@@@Z) already defined in MyProject.obj
This is probably due to that the header file CapiDrawApplication.h holds all the code to the system.
What solutions do I have ? Should I split CapiDrawApplication also ?
I used the tutorial from the web page to set my project up. No problem there.
I prefer to have code in .cpp files and class definations in .h files.
So I took the CMyApplication and split it into those two files. At the same time I removed it from the file where I have the WinMain.
In my header file I include CapiDrawApplication.h. My header file is included a few time also.
So now I get linker errors saying things like:
MyOwnApp.obj : error LNK2005: "public: __thiscall CGapiApplication::CGapiApplication(struct _GDAPPCONFIG const &)" (??0CGapiApplication@@QAE@ABU_GDAPPCONFIG@@@Z) already defined in MyProject.obj
This is probably due to that the header file CapiDrawApplication.h holds all the code to the system.
What solutions do I have ? Should I split CapiDrawApplication also ?