...

View Full Version : Syntax error problem



jaywhy13
08-04-2009, 11:15 PM
Hi all, I'm new to C++ programming (I'm a java guy). I'm trying to start some development using Garmin Windows Mobile SDK. I've got Microsoft Visual C++ 2005 installed. I tried opening their .vcw files but accomplished nothing there. Got some long error:
"The project consists entirely of configurations that require support for platforms which are not installed on this machine."

And some other conversion errors, basically saying that they cannot convert the project to 2005.

I've also tried creating my own project and including the libraries from the include folder that comes with the SDK. I ended up with about 66 syntax errors by just including the main library file.



#include "stdafx.h"
#include "stdio.h"
#include "iostream"
#include "GPSLib.h"

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}

Snippet of errors below:

c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\quepubapi.h(73) : error C2143: syntax error : missing ')' before '*'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\quepubapi.h(73) : error C2143: syntax error : missing ';' before '*'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\quepubapi.h(73) : error C2059: syntax error : ')'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\quepubapi.h(73) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\gpslibtypes.h(196) : error C2146: syntax error : missing ';' before identifier 'slp_dtct'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\gpslibtypes.h(196) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\gpslibtypes.h(196) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\gpslibtypes.h(197) : error C2146: syntax error : missing ';' before identifier 'valid'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\gpslibtypes.h(197) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\gpslibtypes.h(197) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(398) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(398) : error C2143: syntax error : missing ';' before '*'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(398) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(399) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(399) : error C2143: syntax error : missing ';' before '*'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(399) : error C2086: 'const int <unnamed-tag>::WCHAR' : redefinition
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(398) : see declaration of '<unnamed-tag>::WCHAR'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(399) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(400) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(400) : error C2143: syntax error : missing ';' before '*'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(400) : error C2086: 'const int <unnamed-tag>::WCHAR' : redefinition
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(398) : see declaration of '<unnamed-tag>::WCHAR'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(400) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(401) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(401) : error C2143: syntax error : missing ';' before '*'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(401) : error C2086: 'const int <unnamed-tag>::WCHAR' : redefinition
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(398) : see declaration of '<unnamed-tag>::WCHAR'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(401) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(402) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(402) : error C2143: syntax error : missing ';' before '*'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(402) : error C2086: 'const int <unnamed-tag>::WCHAR' : redefinition
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(398) : see declaration of '<unnamed-tag>::WCHAR'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(402) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(407) : error C2146: syntax error : missing ';' before identifier 'streetAddress'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(407) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(407) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(408) : error C2146: syntax error : missing ';' before identifier 'city'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(408) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(408) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(409) : error C2146: syntax error : missing ';' before identifier 'state'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(409) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(409) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(410) : error C2146: syntax error : missing ';' before identifier 'country'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(410) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(410) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(411) : error C2146: syntax error : missing ';' before identifier 'postalCode'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(411) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(411) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(482) : error C2146: syntax error : missing ';' before identifier 'destName'
c:\documents and settings\administrator\my documents\visual studio 2005\projects\pointer testing w32\pointer testing w32\queapitypes.h(482) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


I figure there is some compatibility problems or something... but I really am clueless... no idea what's goin down here.

tommi123
08-16-2009, 07:22 PM
Try this:

#include <iostream>
using namespace std;

int main(int argc, char* argv[])
{

return 0;
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum