Does anyone have these files?
cg.h
cg.cpp
cg_dat.cpp
Kind Regards Baggey
I would help if you know what they are for.
There files missing form codgen inside Blitzmax.
Maybe try and snoop around on older forks/version if any exist, the code generator may not be the same setup, there's residue stuff laid about all over the shop... That is the problem with BlitzMax-NG, it's a monster and stuff over the years may have been stripped away when it's all changed, stuff gets plucked out, changed with out no proper "cleaning", or checks
I have 2 version of BlitzMax for 2 different projects for that reason, stuff works in one, and stuff just breaks in another, stuff gets stripped and you have to try and rebuild the bits that have gone awry.
Basically, it needs stripping back to it's bare basics and starting again, but by doing so, the work to bring it back up will be astounding. Only the bits people need get any love, the graphical side is still pretty solid, because in the most part, that's all they want, so they are maintained.
When it wants, it can be a massive can of worms.
Dabz
What is codgen ?
-Henri
I'm guessing it's related to a code generator which may have been in an old version of BlitzMax[ng]:
https://github.com/blitz-research/blitzmax/blob/master/_src/codegen/cgmodule.cpp
Or similar and they have gone-a-miss somewhere over time.
That's my guess anyway.
Dabz
Quote from: Henri on Jul 13, 2025, 04:32 PMWhat is codgen ?
-Henri
codgen is a folder buried deep in blitzmax. Although it appears to be open source it ain't under the hood!
@Dabz, I thought as well (codegen was Bruceys app for wxFormBuilder output to bmax code converter).
@Baggey, I couldn't find codgen folder on my bmax install.
Edit: That was wxCodeGen. Not sure if codegen was a different project meant for early bootstrapping (seems quite old and long sense abandoned).
There is a bootstrap bmx app for this purpose now (src in the src folder), but I haven't tried it as it seems to do pretty similar thing than what the script does.
-Henri
@Henri, It should be in the blitzmax-master