Previous definition of strdup

Y Khan
Mon Sep 25 02:15:00 GMT 2006

Hi All,

I want to supply my own definition of strdup. So, in
my code I did

#define strdup(s) my_strdup(s)

But when I compile it, I get an error that there is a
previous definition of strdup.

string2.h: this is the location of the previous

Can someone tell me how to resolve this.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the Gcc-help mailing list