Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / December 2004



Tip: Looking for answers? Try searching our database.

CW9: bug or inconsistency in libraries?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hartwig Wiesmann - 18 Dec 2004 16:12 GMT
Hi!

Having included the two files

#include <cstdlib_mach.h>
#include <pwd.h>

and using the MSL libraries by

#define _MSL_USING_MW_C_HEADERS 1

leads to the error

 Error   : illegal function overloading
 pwd.h line 123   char   *user_from_uid(uid_t, int);

 Remark: in cstdlib_mach.h the function declaration reads
 char* user_from_uid(unsigned long, int);

Is there any workaround?

Hartwig
MW Ron - 18 Dec 2004 16:59 GMT
>Hi!
>
[quoted text clipped - 16 lines]
>
>Is there any workaround?

in  cstdlib_mach.h

change

char *user_from_uid(unsigned long, int);

to
//char *user_from_uid(unsigned long, int);    
char *user_from_uid(unsigned int, int);

since a long and an int are the same 32 bit it shouldn't matter.

Ron

Signature

Metrowerks Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and Metrowerks' staff
       --   http://www.metrowerks.com/community  --

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.