Is it possible to generate a lib through the code of a dll?
Yes.
Would I have to change a lot of the code structure?
If done right : not really.
Your dll-header(s) probably makes the distiction for importing and exporting declarations/definitions.
You need to make a third distinction for non-dll usage (no importing exporting).
The biggest change would probably involve separating your projects structure.
Is it possible to generate a lib through the code of a dll? Yes.
Would I have to change a lot of the code structure? If done right : not really.
Your dll-header(s) probably makes the distiction for importing and exporting declarations/definitions. You need to make a third distinction for non-dll usage (no importing exporting).
The biggest change would probably involve separating your projects structure.