Forum Discussion
Altera_Forum
Honored Contributor
13 years agoI too hit this issue. It is rather a shame that the HAL does not provide the trivial support required to have both Lightweight Drivers enabled *and* no stdin/stdout/stderr devices selected.
The solution is pretty trivial. Drop something like this into a .c file in your project: struct ALT_MODULE_CLASS_null_state_s {void * dummy;} null; int alt_module_class_null_write(struct ALT_MODULE_CLASS_null_state_s * sp, const char* ptr, int len, int flags) { return len; }