Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7170877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:18:00+00:00 2026-05-28T15:18:00+00:00

Please help me with the missing LIBs for this MOZILLA program. Trying to create

  • 0

Please help me with the missing LIBs for this MOZILLA program.
Trying to create cookie using nsICookieManager2
I have tried with all the existing libs in Mozilla SDK
Regards

C:\Code>cl.exe FFCookie.cpp /I “C:\xulrunner-sdk\include” mozalloc.lib xpcomglue.lib /link /LIBPATH:”C:\xulrunner-sdk\lib”

Symbols Missing:

FFCookie.obj : error LNK2019: unresolved external symbol “public: void
__thiscall nsCOMPtr_base::assign_from_gs_contractid_with_er ror(class nsGetServiceByContractIDWithError const &,struct nsID const &)”
(?assign_from_gs_contractid_with_error@nsCOMPtr_base@@QA
EXABVnsGetServiceByContractIDWithError@@ABUnsID@@@Z) referenced in
function “public: __thiscall nsCOMPtr::
nsCOMPtr(class
nsGetServiceByContractIDWithError const &)”
(??0?$nsCOMPtr@VnsICookieManager@@@@QAE@ABVnsGe
tServiceByContractIDWithError@@@Z)

FFCookie.obj : error LNK2019: unresolved external symbol “public: void
__thiscall nsCOMPtr_base::assign_from_qi(class nsQueryInter face,struct nsID const &)”
(?assign_from_qi@nsCOMPtr_base@@QAEXVnsQueryInterface@@ABUnsID@@@Z)
referenced in function “public: __t hiscall nsCOMPtr::nsCOMPtr(class
nsQueryInterface)” (??0?$nsCOMPtr@VnsICookieMan
ager2@@@@QAE@VnsQueryInterface@@@Z) FFCookie.exe : fatal error
LNK1120: 2 unresolved externals

#include "nsICookieManager.h"
#include "nsICookieManager2.h"
#include "nsServiceManagerUtils.h"
#include "nsComPtr.h"
#include "nsNetCID.h"
#include "nsStringAPI.h"
#include "mozilla-config.h"
int main()
{

    nsresult rv;
    nsCOMPtr<nsICookieManager> cookieManager = do_GetService (NS_COOKIEMANAGER_CONTRACTID, &rv);
     NS_ENSURE_SUCCESS(rv, rv);

    if (cookieManager)
    {
      nsCOMPtr<nsICookieManager2> cookieManager2 = do_QueryInterface(cookieManager);
      if (cookieManager2)
      {
        cookieManager2->Add(NS_LITERAL_CSTRING("ud.abc.com"),
                       NS_LITERAL_CSTRING("//"),
                       NS_LITERAL_CSTRING("TK"),
                       NS_LITERAL_CSTRING("abc"),  0x1, 0x1, 0, -1);

      }
    }
    return 0;
}

Questions:

I dont find any info with function documentation regarding which LIB to include (as I find on MSDN)

Any clue on how to figure out LIB corresponding to particular function for MOZILLA.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:18:01+00:00Added an answer on May 28, 2026 at 3:18 pm

    The problem isn’t with the lib, the symbol missing is defined in the xpcomglue library. However, you seem to have some compile parameters that don’t match the parameters used to compile XULRunner/Firefox. The symbols your compiler is looking for contain “QAEX” as parameter description whereas the library defines them with “QAIX”. Looking at the name mangling table, your compiler expects unsigned char where Mozilla has unsigned int. I suspect that the reason is you compiling your application without Unicode support – change main() into wmain()?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know I'm missing something small.. please help! I have a repo for my
This is hopefully a new problem or just me missing something obvious. Please help!
Please help me with this hibernate problem, I'm new to hibernate and still trying
Please help me with this one, I've been writing a console applicaiton using the
please please help me someone, i am losing my mind. i have absolute/relative (tried
please help. I'm not asking you to create the program just please tell me
Please help. I am trying to dynamically name my checkboxes using php. I am
I have been reading stackOverflow answers for this question for hours. Please help me.
Please help with this issue, I'm going mad... I'm trying to make a client-server
Please help! I'm really at my wits' end. My program is a little personal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.