you link to some library instead of having .cpp files with implementation. So if you want to use some code you have to #include header where that code is declared. Then you have to have the .cpp with definition or library where implementation is already compiled.
So if you have mylib.dll and mylib.lib (or libmylib.a for mingw) where SomeClass has implementation you have to #include the header, lets say "someclass.h":
#include <someclass.h>
// . . . some code . . .
SomeClass sc;
// . . .
#include <someclass.h>
// . . . some code . . .
SomeClass sc;
// . . .
To copy to clipboard, switch view to plain text mode
and you have to link to the library (exactly in this moment you are linking to the .lib or .a file apropriate to your library) (in .pro file):
LIBS += -lmylib #notice no .lib, no .a, no .dll, only the essential name of library
LIBS += -lmylib #notice no .lib, no .a, no .dll, only the essential name of library
To copy to clipboard, switch view to plain text mode
but if your library is not in path you have to first point the directory:
LIBS += -Lpath/to/your/library
LIBS += -Lpath/to/your/library
To copy to clipboard, switch view to plain text mode
Bookmarks