CodeLite Software Architecture Question

Post here wxCrafter related issues / features / bugs

CodeLite Software Architecture Question

Postby ColleenKobe » Fri Aug 04, 2017 5:53 pm

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
ColleenKobe
CodeLite Veteran
 
Posts: 54
Joined: Wed Mar 30, 2016 4:31 pm

Re: CodeLite Software Architecture Question

Postby eranif » Sat Aug 05, 2017 8:19 pm

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
eranif
CodeLite Plugin
 
Posts: 5576
Joined: Wed Feb 06, 2008 9:29 pm

Re: CodeLite Software Architecture Question

Postby ColleenKobe » Mon Aug 07, 2017 3:56 pm

Thank you, Eranif!

Colleen
ColleenKobe
CodeLite Veteran
 
Posts: 54
Joined: Wed Mar 30, 2016 4:31 pm


Return to wxCrafter

Who is online

Users browsing this forum: No registered users and 1 guest

cron