Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: rodrigo.canellas on September 25, 2007, 08:26:09 pm

Title: "ISO C++ forbids declaration of ... with no type"
Post by: rodrigo.canellas 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!
Title: Re: "ISO C++ forbids declaration of ... with no type"
Post by: thomas on September 25, 2007, 09:10:04 pm
Missing include file. Try winscard.h.
Title: Re: "ISO C++ forbids declaration of ... with no type"
Post by: rodrigo.canellas on September 25, 2007, 09:38:34 pm
Thomas,

Are you familiar to PCSC programming?
Title: Re: "ISO C++ forbids declaration of ... with no type"
Post by: thomas 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).