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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:51:01+00:00 2026-05-20T14:51:01+00:00

Can someone help me ?I am trying to run the 3d point cloud viewer

  • 0

Can someone help me ?I am trying to run the 3d point cloud viewer .However it shows me the following errors

Error   1   error C2144: syntax error : 'void' should be preceded by ';'    c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h   1152    Viewer
Error   2   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h   1152    Viewer
Error   3   error C2146: syntax error : missing ';' before identifier 'glAccum' c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h   1152    Viewer
Error   4   error C2182: 'APIENTRY' : illegal use of type 'void'    c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h   1152    Viewer
Error   5   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h   1152    Viewer
Error   6   error C2144: syntax error : 'void' should be preceded by ';'    c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h   1153    Viewer
Error   7   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h   1153    Viewer

and so on …
Beginning of my code is :

    #include <cstdlib>
    #include <GL/glut.h>

    #include <cmath>
    #include "arcball.h"
    #include <vector>
    #include <iostream>
    #include <fstream>
 using namespace std;

Can someone please tell me what is going wrong?

  • 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-20T14:51:02+00:00Added an answer on May 20, 2026 at 2:51 pm

    Well, the first reported error is on the first line that declares a function with the WINGDIAPI modifier. Apparently, this is declared in wingdi.h. However, I’m not sure if you’re meant to #include that directly, or whether there’s a more formal recommendation for compiling opengl code in the windows environment. I’ll have a hunt around.

    The page on MSDN discussing the necessary headers for OpenGL work are a bit vague, but I take:

    The Windows functions that support Microsoft’s implementation of OpenGL in Windows must include the header file Windows.h.

    To mean that you ought to include windows.h first.


    Really? If I create a blank C++ project in VS2008, create an empty cpp file, copy and paste your includes in, and hit compile, I get exactly the errors you described. If I change my includes to:

    #include <cstdlib>
    #include <windows.h>
    #include <GL/gl.h>
    
    #include <cmath>
    #include "arcball.h"
    #include <vector>
    #include <iostream>
    #include <fstream>
    

    Then the first reported error I get is that it can’t find “arcball.h” (hardly unexpected). Are you still getting the same errors once windows.h is included?

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

Sidebar

Related Questions

Can i get the source code for a WAMP stack installer somewhere? Any help
I need to solve the following question which i can't get to work by
If all tables I want to delete from have the column gamer_id can i
I'm trying to build a C++ extension for python using swig. I've followed the
I'm working on a project in C# w/ XNA, and I want to reorganize
My question is about memory use and objects in actionscript 2. If I have
I want to use a temp directory that will be unique to this build.
Every time that I want to do a Layout, I'm getting a black layout
I'm in the process of porting some code from Linux to Mac OS X.
i have a input tag which is non editable, but some times i need

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.