missing ';' before identifier 'KSPIN_LOCK'

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Dec 2005
Posts: 43
Reputation: Nedals is an unknown quantity at this point 
Solved Threads: 0
Nedals Nedals is offline Offline
Light Poster

missing ';' before identifier 'KSPIN_LOCK'

 
0
  #1
Dec 11th, 2005
I'm really new to C++, but not to programming, and don't really know what I'm doing. I had a bunch of programs working OK. Then I was messing with a window application and all my window programs would no longer compile.

I get the following error (same for all projects)
c:\program files\microsoft visual studio\vc98\include\winnt.h(1094) : error C2146: syntax error : missing ';' before identifier 'KSPIN_LOCK'
c:\program files\microsoft visual studio\vc98\include\winnt.h(1094) : fatal error C1004: unexpected end of file found

I may (I don't know ) have messed with the API settings. There's lot's of references to this on 'google search' but I could find nothing that addressed this specific problem. Any help would be greatly appreciated.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 466
Reputation: winbatch is on a distinguished road 
Solved Threads: 18
winbatch's Avatar
winbatch winbatch is offline Offline
Posting Pro in Training

Re: missing ';' before identifier 'KSPIN_LOCK'

 
0
  #2
Dec 11th, 2005
Check that you aren't missing a } or have 2 }} when you should only have 1. I've had silly errors like that give me hundreds of compiler errors..
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 43
Reputation: Nedals is an unknown quantity at this point 
Solved Threads: 0
Nedals Nedals is offline Offline
Light Poster

Re: missing ';' before identifier 'KSPIN_LOCK'

 
0
  #3
Dec 11th, 2005
Thanks for the response...
The compiler does a pretty good job of catching syntax errors and I've checked for anything obvious.

I'm using Micro$ Visual C++ 6.0 and I'm getting the same error on untouched 'wizard' applications. I 'think' I know what the problem is, but I need a file from work to confirm. I'll report back and let you know what transpired.

Talking of VC 6.0, does anyone know if you can turn-on line numbering in the editor. Micro$ frequently hides little things like that.
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 43
Reputation: Nedals is an unknown quantity at this point 
Solved Threads: 0
Nedals Nedals is offline Offline
Light Poster

Re: missing ';' before identifier 'KSPIN_LOCK'

 
0
  #4
Dec 11th, 2005
OK! This was my problem.
As stated at the beginning of this thread, I don't know what I'm doing, YET.

I downloaded a project from the web which pulled up a dependancy file, Basetsd.h, and I did not know why it was there. (didn't appear with the MS projects !!). So deleted it.
NOT a good idea :rolleyes:

Down to the office, get a copy of the file, install it, and all's well.

The moral: Don't mess with things you don't understand...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC