3 msgStrange 'No matching function for call' compila...
5 msgcompiling gcc 4.1.1 for AVR
2 msggfortran compiler precision
2 msgReading and writing binary files
2 msgAnother strict-alias puzzle with (unsigned) cha...
4 msgcannot exec 'cc1plus'
1 msgTest of subscribing
2 msgpeephole2
3 msgcross compilation
3 msgproblem building arm-linux-gcc
3 msgfunctors and callbacks
5 msgProblem with forward declaration of classes wit...
2 msg4.2 release date?
1 msgboehm-gc/misc.c compilation problem on cygwin
1 msgprintf-like syntax
4 msgExtending GNU C extensions
3 msgArguments in registers
2 msghelp: C++, SunStudio and gcc

Previous definition of strdup
\ Y Khan (25 Sep 2006)
. \ Amit Choudhary (25 Sep 2006)
. . \ Y Khan (25 Sep 2006)

4 msgg++ -ldl
Subject:Previous definition of strdup
Group:Gcc-help
From:Y Khan
Date:25 Sep 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
definition.

Can someone tell me how to resolve this.

YKhan

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


© 2004-2008 readlist.com