Ok thanks guys, thats actually what i thought. I guess VS.NET 2003 is different from the older version i was using. But im still getting weird errors i don't understand. Like these:
Code:
Compiling...
Grbfsm.cpp
c:\Documents and Settings\Neil\My Documents\School\COMP_352\assign4\GRMAT.H(17) : warning C4101: 'j' : unreferenced local variable
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(37) : error C2146: syntax error : missing ';' before identifier 'Length'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(37) : error C2501: '_LIST::DWORD' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(37) : error C2501: '_LIST::Length' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(53) : error C2146: syntax error : missing ';' before identifier 'GetPrevLink'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(53) : error C2433: 'WINAPI' : 'inline' not permitted on data declarations
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(55) : error C2440: 'return' : cannot convert from 'LPLINK' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(56) : error C2617: 'GetPrevLink' : inconsistent return statement
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(53) : see declaration of 'GetPrevLink'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(58) : error C2146: syntax error : missing ';' before identifier 'GetNextLink'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(58) : error C2433: 'WINAPI' : 'inline' not permitted on data declarations
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(58) : error C2086: 'LPLINK WINAPI' : redefinition
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(53) : see declaration of 'WINAPI'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(60) : error C2440: 'return' : cannot convert from 'LPLINK' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(61) : error C2617: 'GetNextLink' : inconsistent return statement
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(58) : see declaration of 'GetNextLink'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(63) : error C2146: syntax error : missing ';' before identifier 'GetHeadOfList'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(63) : error C2433: 'WINAPI' : 'inline' not permitted on data declarations
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\List.h(63) : error C2086: 'LPLINK WINAPI' : redefinition
ect....
Why are these showing up? This is what i include:
Code:
#include <iostream>
#include <stdlib.h>
using namespace std;
should i instead of with the .h? But if i do i get an error saying it cannot be found. Man im so confused. :S