[TriEmbed] TriEmbed Digest, Vol 83, Issue 16

Alex Davis alexd at matrixwide.com
Wed Apr 22 09:58:23 CDT 2020


> And see if that compiles and links ok.
> If not, you need to add 4 operators:
> 
> operator new, operator new[], operator delete, operator delete[]

Unfortunately, defining the operators didn't fix the compile error.


> You syntax looks correct. (as it ought to since it compiles in another 
> environment). Try moving those lines around within the source file, or 
> even putting them in a header files in an inline function, just short 
> term, in an attempt to get a more clear error message.

It's probably something like this. I had problems with enum like so:

enum FitResolutionGate { kFill = 0, kOverscan };
typedef enum FitResolutionGate FitResolutionGate_t;

It wouldn't compile unless I stuck that into a types.h file.

I'm not finding much online about this issue and my guess is because at the level of needing class templates you're out of Arduino territory. At this point I'm more inclined to toss the Due and just figure out how to run it on a Beaglebone Black using the PRUs than try to re-write the scratchpixel code.

I have a pretty weak grasp of 3D matrix transforms as it is, and I see they're overloading operators to facilitate things like matrix multiplies, so it'd be a bit of work to translate that all back to simple structs and functions.

Alex




More information about the TriEmbed mailing list