following error while using nsIHttpAuthManager.idl.h

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

following error while using nsIHttpAuthManager.idl.h

Vikas Pushkar
In file included from ./nsIHttpAuthManager.idl.h:10:
In file included from /Developer/SDKs/xulrunner-sdk/include/nsISupports.h:10:
In file included from /Developer/SDKs/xulrunner-sdk/include/nsrootidl.h:11:
In file included from /Developer/SDKs/xulrunner-sdk/include/nscore.h:50:
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:229:12: error: use of undeclared identifier 'moz_xmalloc'
    return moz_xmalloc(size);
           ^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:232:21: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete]
MOZALLOC_EXPORT_NEW MOZALLOC_INLINE
                    ^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:76:27: note: expanded from macro 'MOZALLOC_INLINE'
#  define MOZALLOC_INLINE inline
                          ^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:235:12: error: use of undeclared identifier 'moz_malloc'
    return moz_malloc(size);
           ^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:238:21: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete]
MOZALLOC_EXPORT_NEW MOZALLOC_INLINE
                    ^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:76:27: note: expanded from macro 'MOZALLOC_INLINE'
#  define MOZALLOC_INLINE inline
                          ^
/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:239:7: error: exception specification in declaration does not match previous declaration
void* operator new[](size_t size) MOZALLOC_THROW_BAD_ALLOC
      ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:136:30: note: previous declaration is here
_LIBCPP_NEW_DELETE_VIS void* operator new[](std::size_t __sz)
                             ^


I can see that moose_xalloc function is in libmozalloc.dylib but don't know why it is not taking it.

please help!!!
_______________________________________________
dev-tech-xul mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xul
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: following error while using nsIHttpAuthManager.idl.h

Neil-4
Vikas Pushkar wrote:

>/Developer/SDKs/xulrunner-sdk/include/mozilla/mozalloc.h:229:12: error: use of undeclared identifier 'moz_xmalloc'
>    return moz_xmalloc(size);
>           ^
>  
>
Strange; moz_xmalloc should be defined earlier in mozalloc.h (although I
may not be looking at the same version of mozalloc.h that you are).

--
Warning: May contain traces of nuts.
_______________________________________________
dev-tech-xul mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xul
Loading...