Page 1 of 1

CodeLite Software Architecture Question

Posted: Fri Aug 04, 2017 5:53 pm
by ColleenKobe
In CodeLite, I have a wxWidgets C++ workspace with one project ("Main"), and two Base Classes under wxCrafter. The main program runs fine.
Now I need to create a plain vanilla C DLL containing utilities that the main program will call.

Architecturally, I am not sure what the "best" way to create the DLL would be. Here are two options:

* I could create a new CodeLite workspace, with one plain C project, and create the DLL from there; or

* In the main program's workspace, I could create a new Project. The source and header files would be plain C code. The code would compile and link into a DLL. Right? Is that do-able? Or does a workspace only produce one executable?

Which one is the "best" way? Or are there more options? I'm open to suggestions.


Software Versions
CodeLite 10.0.6
MinGW hard to tell, but I downloaded it on July 10, 2017
Windows 10 Pro, 64-bit
wxWidgets 3.0.2
wxCrafter 2.6

Target platform 32-bit
Target build debug

Re: CodeLite Software Architecture Question

Posted: Sat Aug 05, 2017 8:19 pm
by eranif
A workspace is a collection of projects. Each *project* produces DLL/Static Library or an Executable.
So your second option is the correct one.

Re: CodeLite Software Architecture Question

Posted: Mon Aug 07, 2017 3:56 pm
by ColleenKobe
Thank you, Eranif!