This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

GCC 2.95.3 Bug?


The following code gives an error from ld (version 2.10.91)
using gcc 2.95.3 ("undefined reference to strdupa"):


#include <srtring.h>
#define __USE_GNU
int main()
{
   const char* s = "abc";
   char* t = strdupa(s);
   return 0;
}

Thanks.

Tom Browder



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]