Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Syntax error problem

    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.

    Code:
    #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.
    I'm gonna find a way to download the internet if its the last thing I do...
    Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished

  • #2
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try this:

    #include <iostream>
    using namespace std;

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

    return 0;
    }
    Last edited by oracleguy; 08-17-2009 at 01:40 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •