Author Topic: "ISO C++ forbids declaration of ... with no type"  (Read 26326 times)

rodrigo.canellas

  • Guest
"ISO C++ forbids declaration of ... with no type"
« on: September 25, 2007, 08:26:09 pm »
Hi,

I am using 'mingw32-g++.exe' version "3.4.2 (mingw-special)", which is reporting the compiler error "ISO C++ forbids declaration of `SCARDHANDLE' with no type"

I tried to find something in the web, but nothing resulted.

This code compiles fine in MS Visual Studio 2005.

Thanks!

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: "ISO C++ forbids declaration of ... with no type"
« Reply #1 on: September 25, 2007, 09:10:04 pm »
Missing include file. Try winscard.h.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

rodrigo.canellas

  • Guest
Re: "ISO C++ forbids declaration of ... with no type"
« Reply #2 on: September 25, 2007, 09:38:34 pm »
Thomas,

Are you familiar to PCSC programming?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: "ISO C++ forbids declaration of ... with no type"
« Reply #3 on: September 26, 2007, 12:33:26 am »
No.
But the error message is clear. The type is not defined (which should be the case). Either you forgot to include mentioned header, or the version in MinGW does not contain that particular typedef (in which case you can copy it from the platform SDK).
« Last Edit: September 26, 2007, 12:35:36 am by thomas »
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."