From 13705fe80f9a39b21c1e1b605760937f7916a7e2 Mon Sep 17 00:00:00 2001 From: wilson chen Date: Sun, 22 Dec 2019 23:04:29 +0800 Subject: [PATCH] gdcache: improve gdcache test compile cmd --- src/gdcache.c | 4 +++- src/gdcache.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gdcache.c b/src/gdcache.c index 5a260a8..15599d3 100644 --- a/src/gdcache.c +++ b/src/gdcache.c @@ -25,7 +25,9 @@ * John Ellson (ellson@graphviz.org) Oct 31, 1997 * * Test this with: - * gcc -o gdcache -g -Wall -DTEST gdcache.c + * gcc -o gdcache -g -Wall -DTEST -DNEED_CACHE gdcache.c -lgd + * or + * gcc -o gdcache -g -Wall -DTEST -DNEED_CACHE gdcache.c libgd.a * * The cache is implemented by a singly-linked list of elements * each containing a pointer to a user struct that is being managed by diff --git a/src/gdcache.h b/src/gdcache.h index bf451dc..751a842 100644 --- a/src/gdcache.h +++ b/src/gdcache.h @@ -12,7 +12,9 @@ extern "C" { * John Ellson (ellson@graphviz.org) Oct 31, 1997 * * Test this with: - * gcc -o gdcache -g -Wall -DTEST gdcache.c + * gcc -o gdcache -g -Wall -DTEST -DNEED_CACHE gdcache.c -lgd + * or + * gcc -o gdcache -g -Wall -DTEST -DNEED_CACHE gdcache.c libgd.a * * The cache is implemented by a singly-linked list of elements * each containing a pointer to a user struct that is being managed by