CodeLite Software Architecture Question

Post here wxCrafter related issues / features / bugs
User avatar
ColleenKobe
CodeLite Expert
Posts: 130
Joined: Wed Mar 30, 2016 4:31 pm
Genuine User: Yes
IDE Question: C++
Contact:

CodeLite Software Architecture Question

Post 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.

Colleen

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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite Software Architecture Question

Post 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.

http://codelite.org/LiteEditor/WorkspacesAndProjects
Make sure you have read the HOW TO POST thread
User avatar
ColleenKobe
CodeLite Expert
Posts: 130
Joined: Wed Mar 30, 2016 4:31 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite Software Architecture Question

Post by ColleenKobe »

Thank you, Eranif!

Colleen
Post Reply