silentbicycle / greatest

A C testing library in 1 file. No dependencies, no dynamic allocation. ISC licensed.
ISC License
1.48k stars 108 forks source link

DOS build using djgpp #101

Closed alexander-zolkin closed 4 years ago

alexander-zolkin commented 4 years ago

I am trying to build a simple program with greatest under DOSBox using djgpp and this is what I am getting.

Is there a way to use greatest under DOS?

silentbicycle commented 4 years ago

I haven't tried on DOS, but in theory it should work -- I have built it for microcontrollers which didn't have an operating system at all.

Since you're getting a warning about missing greatest_info, make sure you're using GREATEST_MAIN_DEFS() properly. The macro expansion includes the greatest_info definition, along with lots of other static internal functions.