Menu

#240 MinGW compile: error in gerb_file.c:111:27

v1.0 (example)
open
nobody
None
5
2019-02-05
2019-02-05
No

Building gerbv-2.7.0 on MinGW brings up one error:

gerb_file.c:111:27: error: macro "g_new" requires 2 arguments, but only 1 given
fd = g_new(gerb_file_t);
                     ^

Changing line 111 to

    fd = g_new(gerb_file_t, 1);

(hope it's right) solves this error, making gerbv compile without errors.

I've attached the resulting gerbv.exe (Win64/pe) for those guys who failed to do so. But, sorry, without dxflib, still some work to do.

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB