Thread: help with strange errors

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    18

    help with strange errors

    Code:
    compiling...
    Main.cpp
    c:\Program Files\DX9SDK\Samples\C++\Common\Include\d3denumeration.h(33) : error C2143: syntax error : missing ';' before '*'
    c:\Program Files\DX9SDK\Samples\C++\Common\Include\d3denumeration.h(33) : error C2501: 'D3DAdapterInfo::CArrayList' : missing storage-class or type specifiers
    c:\Program Files\DX9SDK\Samples\C++\Common\Include\d3denumeration.h(33) : error C2501: 'D3DAdapterInfo::pDisplayModeList' : missing storage-class or type specifiers
    I was trying to use some toturs and face that errors. What I do wrong? Toturs are 100% workable. It seems that I have something wrong. But what?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Well you could always post the offending code so we could look at it. You get a silver star for actually posting the error, but had you read the Announcement, you'd have seen that in order to get a GOLD STAR, you need to post more information for your post to be considered useful to the would-be readers. Let's go read them and try again, shall we?

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    quzah can i get a gold star. Pleassssssse
    As for you rock it looks like you are missing a ";" at the end of on of your statements. I would check line 33 myself maybe 32
    Woop?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Since the errors appear to be in a library header file, you probably missed including some other required header file.

    windows.h is a popular choice I hear.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Jul 2004
    Posts
    18
    Ok I solve that. The problem was - old sourse code...

    I know, 1st post was bad. Its just because I was tired, sorry.

    but had you read the Announcement
    Well... actually not, sorry I'll do that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sneaky little linker errors...
    By Tozar in forum C++ Programming
    Replies: 8
    Last Post: 10-25-2006, 05:40 AM
  2. Errors with header files in OpenGL using VisualC++
    By wile_spice in forum Game Programming
    Replies: 3
    Last Post: 06-22-2006, 08:56 AM
  3. strange errors
    By duvernais28 in forum C Programming
    Replies: 9
    Last Post: 02-19-2005, 09:40 AM
  4. strange errors?
    By egomaster69 in forum C Programming
    Replies: 6
    Last Post: 12-21-2004, 06:13 PM
  5. executing errors
    By s0ul2squeeze in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2002, 01:43 PM