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 6472377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:20:13+00:00 2026-05-25T06:20:13+00:00

I seem to have a strange problem: I coded an application in C++ (using

  • 0

I seem to have a strange problem:

I coded an application in C++ (using Eclipse CDT) that uses Mozilla’s Netword Security Services. This application is running fine, so I thought I can just move the appropriate classes/headers/sources to another project (can this generally be done?). The original project uses some additional headers located in /usr/include/nspr and libnss3.

This other project is compiled using CMake. So I told CMake to add /usr/include/nspr to the include path and to use libnss3. However, when I try using the classes within this other project, I get the following error when compiling:

In file included from some-dir/src/import/FirefoxImporter.h:21:0,
                 from some-dir/src/import/Import_Firefox.h:26,
                 from some-dir/src/mainwindow.cpp:28:
/usr/include/nss/secmodt.h:85:25: error: expected unqualified-id before ‘;’ token

Line 85 in secmodt.h looks as follows:

PK11SlotInfo **slots;   /* array of slot points attached to this mod*/

And PK11SlotInfo is typedef’d in secmodt.h:

typedef struct PK11SlotInfoStr PK11SlotInfo; /* defined in secmodti.h */

However, I was not able to locate secmodti.h on my system (however, the original program compiled and executed just fine).

Has anybody experienced similar problems and solved them?

  • 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-25T06:20:14+00:00Added an answer on May 25, 2026 at 6:20 am

    i suspect you have included QT before secmodt.h. ‘slots’ is a QT moc keyword.

    Update

    i guessed this because QT is a popular library (and i knew of its usage of slots). plus, this type of error looked like typical preprocessor nonsense.

    QT’s #defined ‘slots’ to nothing for use with its Meta Object Compiler.

    you can either: (possibly?) include QT at some point after secmodt.h, or (possibly?) add no_keywords to your config — then pray to the compiler gods.

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

Sidebar

Related Questions

I have a a strange problem that I can't seem to identify the cause
I seem to have a strange problem. I am working on a simple dashboard
I have a strange problem that i'm seeing in Chrome. I use an ajax
I have discovered a strange problem when using UIActionSheet on the iPhone (iOS 4.2).
I seem to have a problem with this SQL query: SELECT * FROM appts
I seem to have an app on my Dev server that has lots of
I seem to have a problem with getting MVC to fill in my custom
I seem to have the exact opposite problem than this question on stopping dock
I seem to have a problem understanding how to conditionally test a boolean value
I have a strange problem on a web page I'm working with. I have

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.