gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
Apache protable runtime 1.4
c89 and compiling in -m32 mode
apr_time_t time_msecs = 0;
time_msecs = apr_time_as_msec(apr_time_now());
printf("Time in msecs [ %lu ]\n", time_msecs);
我得到以下警告:
format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘apr_time_t’ [-Wformat]
從鑄造
分開。什麼是這種類型的正確格式說明符(apr_time_t)?
非常感謝您的任何建議,
我一開始就投了。但我想知道是否有一個格式說明符可以用來代替。謝謝。 – ant2009