Sounds like TWinClass constructor is declared but not implemented. How about declaring the whole class once and just providing different implementation for it in different files:
// myclass.h:
class MyClass
{
public:
MyClass();
};
// myclass.h:
class MyClass
{
public:
MyClass();
};
To copy to clipboard, switch view to plain text mode
// myclass_unix.cpp:
#include "myclass.h"
MyClass::MyClass()
{
...
}
// myclass_unix.cpp:
#include "myclass.h"
MyClass::MyClass()
{
...
}
To copy to clipboard, switch view to plain text mode
// myclass_win.cpp:
#include "myclass.h"
MyClass::MyClass()
{
...
}
// myclass_win.cpp:
#include "myclass.h"
MyClass::MyClass()
{
...
}
To copy to clipboard, switch view to plain text mode
In that case your .pro file would look like this:
HEADERS += myclass.h
unix:SOURCES += myclass_unix.cpp
win32:SOURCEs += myclass_win.cpp
HEADERS += myclass.h
unix:SOURCES += myclass_unix.cpp
win32:SOURCEs += myclass_win.cpp
To copy to clipboard, switch view to plain text mode
Bookmarks