how can i use my own func in stdio.a?,such as printf

Christopher Faylor cgf-idd@cygwin.com
Wed Aug 27 06:01:00 GMT 2003


On Wed, Aug 27, 2003 at 10:09:37AM +0800, zhao mindong wrote:
>i want to use my own printf,but i must use the other function declared
>in stdio.h,there is always an error"previous defined",how can i solve
>the problem.

Either you define your printf exactly the same way it is declared in
stdio.h or you:

#define printf BLAH_printf
#include <stdio.h>
#undef printf

>another question,how can i build the cygwin1.dll?any reference or
>document here?

Check the FAQ.
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to aaaspam@sourceware.org
and be permanently blocked from mailing lists at sources.redhat.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list