Click here to Skip to main content
15,347,685 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: CCC 03-12-2021 Pin
englebart6-Dec-21 8:26
professionalenglebart6-Dec-21 8:26 
GeneralThe house that Jack built Pin
honey the codewitch2-Dec-21 15:58
mvahoney the codewitch2-Dec-21 15:58 
GeneralRe: The house that Jack built Pin
englebart2-Dec-21 16:42
professionalenglebart2-Dec-21 16:42 
GeneralRe: The house that Jack built Pin
honey the codewitch2-Dec-21 18:07
mvahoney the codewitch2-Dec-21 18:07 
GeneralRe: The house that Jack built Pin
ElectronProgrammer3-Dec-21 1:23
MemberElectronProgrammer3-Dec-21 1:23 
GeneralRe: The house that Jack built Pin
honey the codewitch3-Dec-21 2:15
mvahoney the codewitch3-Dec-21 2:15 
GeneralRe: The house that Jack built Pin
PaltryProgrammer3-Dec-21 10:54
MemberPaltryProgrammer3-Dec-21 10:54 
GeneralRe: The house that Jack built Pin
honey the codewitch3-Dec-21 11:15
mvahoney the codewitch3-Dec-21 11:15 
I'm trying to do something simpler than that, if I can.

The header only approach works with many IoT projects under the Arduino framework, as there's only one cpp file - other than from included libraries which will never include your headers.

However, once you're no longer coding against Arduino, the possibility of having several cpps becomes very real and then you get symbol nightmare.

75% of GFX is templates. The trouble was the 25% that wasn't.

This is what I do now, because it makes Platform IO happy as well as satisfying other build environments:

I use /include and /src for each "project/module" i'm developing. What I mean by that is this.

GFX is a module
NES (my nintendo engine) is a module
The main project that includes both of those is itself, a module.

So it goes

myproject/include
myproject/src
myproject/lib/gfx/include
myproject/lib/gfx/src
myproject/lib/nes/include
myproject/lib/nes/src

for the overarching project "myproject"

Then, and I'm ashamed of this, but it works - I don't use CMake or Make at all (because they don't work with platformIO)

I use vscode's .vscode folder (cpp_properties.json/tasks.json/launch.json) to configure my build.

And then if I'm feeling saucy I write a shell script to run the build.

Make can take a running jump. CMake isn't any better. Besides, it wouldn't matter if I like them, since my toolchain isn't compatible with them.
Real programmers use butterflies

JokeTis the season Pin
Mike Hankey2-Dec-21 8:35
professionalMike Hankey2-Dec-21 8:35 
GeneralRe: Tis the season Pin
pkfox2-Dec-21 22:32
professionalpkfox2-Dec-21 22:32 
GeneralRe: Tis the season Pin
oofalladeez34313-Dec-21 15:56
professionaloofalladeez34313-Dec-21 15:56 
GeneralEmbarassment at work today Pin
Gary Wheeler2-Dec-21 6:20
MemberGary Wheeler2-Dec-21 6:20 
GeneralRe: Embarassment at work today Pin
jeron12-Dec-21 6:24
Memberjeron12-Dec-21 6:24 
GeneralRe: Embarassment at work today Pin
David O'Neil2-Dec-21 6:29
professionalDavid O'Neil2-Dec-21 6:29 
GeneralRe: Embarassment at work today Pin
PIEBALDconsult2-Dec-21 6:34
professionalPIEBALDconsult2-Dec-21 6:34 
GeneralRe: Embarassment at work today Pin
Gary Wheeler2-Dec-21 6:40
MemberGary Wheeler2-Dec-21 6:40 
GeneralRe: Embarassment at work today Pin
David O'Neil2-Dec-21 7:43
professionalDavid O'Neil2-Dec-21 7:43 
GeneralRe: Embarassment at work today Pin
PIEBALDconsult2-Dec-21 6:40
professionalPIEBALDconsult2-Dec-21 6:40 
GeneralRe: Embarassment at work today Pin
Gary Wheeler2-Dec-21 6:42
MemberGary Wheeler2-Dec-21 6:42 
GeneralRe: Embarassment at work today Pin
PIEBALDconsult2-Dec-21 6:45
professionalPIEBALDconsult2-Dec-21 6:45 
GeneralRe: Embarassment at work today Pin
Gary Wheeler2-Dec-21 6:55
MemberGary Wheeler2-Dec-21 6:55 
GeneralRe: Embarassment at work today Pin
PIEBALDconsult2-Dec-21 7:04
professionalPIEBALDconsult2-Dec-21 7:04 
GeneralRe: Embarassment at work today Pin
Marc Clifton2-Dec-21 7:22
mvaMarc Clifton2-Dec-21 7:22 
GeneralRe: Embarassment at work today Pin
PIEBALDconsult2-Dec-21 7:50
professionalPIEBALDconsult2-Dec-21 7:50 
GeneralRe: Embarassment at work today Pin
Gerry Schmitz2-Dec-21 8:05
mveGerry Schmitz2-Dec-21 8:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

You discover a sentient AI in your org's system. What do you do?
Well you never know what sort of orphaned projects previous employees have left behind...
  Results   600 votes