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

  • SEARCH
  • Home
  • 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 9185379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:15:45+00:00 2026-06-17T19:15:45+00:00

I met an error complaining: error: expected initializer before ‘:’ token SO I went

  • 0

I met an error complaining: error: expected initializer before ‘:’ token

SO I went to check the code, it has some lines as below,

class VTK_IO_EXPORT vtkPFReader
:
    public vtkMultiBlockDataSetAlgorithm
{blahblah...}

I want to know in defining class VTK_IO_EXPORT vtkPFReader, what does the first name VTK_IO_EXPORT mean? I found that if I delete the VTK_IO_EXPORT, then no error occurs, but some other error happens. What should I do? Thanks a lot

  • 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-06-17T19:15:46+00:00Added an answer on June 17, 2026 at 7:15 pm

    VTK_IO_EXPORT is a preprocessor macro. It is blank on all platforms other that Windows.

    On Windows, VTK_IO_EXPORT is defined as __declspec( dllexport ) or __declspec( dllimport ), both of which are non-standard Microsoft extensions.

    The fact that you’re getting the error, and that removing VTK_IO_EXPORT fixes it, suggests that for some reason you have WIN32 defined even though you’re building on Linux. You need to figure out why this is happening.

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

Sidebar

Related Questions

during programming with VBScript I write a lot of error-check code in functions before
Has anyone met this error? Right now i am trying to do switch from
I met some compilation error but do not know what the problem is. The
I met this message of error while trying to save an image which has
How to raise error from PostgreSQL SQL statement if some condition is met? I
everyone, I met a problem about APNs when I used the code below. I
I tried the following code in SQL Server and met a strange error: IF
I met a strange error after migration to XTEXT2. When I write three elements,
I got the follow error: verzend mail naar t met attachment: e verzend mail
I met strange problem. I have never work with Devise gem before. So, i

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.