justanhduc / task-spooler

A scheduler for GPU/CPU tasks
https://justanhduc.github.io/2021/02/03/Task-Spooler.html
GNU General Public License v2.0
273 stars 24 forks source link

make cpu giving error: implicitly declaring library function 'snprintf' with type 'int #29

Closed jamesbraza closed 1 year ago

jamesbraza commented 1 year ago

I just git clone'd the current master bbfd33e and ran make cpu. It outputs an error in list.c:

list.c:22:9: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration]
        snprintf(newline, len - 4, "%s", line);
        ^

Can you fix this error message? It blocks the install for me.


I am using GNU Make 3.81 on Mac M1 with macOS Monterey version 12.6.

justanhduc commented 1 year ago

Hey @jamesbraza. Thanks for using Task Spooler. It seems like your error is similar to here. Could you please try the solution there and let me know if it can solve your problem?

jamesbraza commented 1 year ago

Closing as a duplicate of https://github.com/justanhduc/task-spooler/issues/4