Thread

Help with C++ Code (Sdk)

Help with C++ Code // Sdk

1  |  

johnf

Jan 17, 2004, 9:06pm
--------------------Configuration: test - Win32 Debug--------------------
Compiling...
test.cpp
c:\program files\microsoft visual studio\vc98\include\stdlib.h(2) : error
C2143: syntax error : missing ';' before '.'
c:\program files\microsoft visual studio\vc98\include\stdlib.h(2) : error
C2501: 'stdlib' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\stdlib.h(2) : error
C2143: syntax error : missing ';' before '.'
c:\program files\microsoft visual studio\vc98\include\stdlib.h(7) : error
C2146: syntax error : missing ';' before identifier 'include'
c:\program files\microsoft visual studio\vc98\include\stdlib.h(7) : error
C2501: 'This' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\stdlib.h(7) : fatal
error C1004: unexpected end of file found
Error executing cl.exe.

test.exe - 6 error(s), 0 warning(s)


- Whats wrong?


My code is (stdlib.h is included):

#include <iostream.h>
#include <stdlib.h>

int main()
{
cout << "Hello\n";
system("PAUSE");
return 0;
}

johnf

Jan 17, 2004, 9:32pm
NM - reinstall solved.

~John

[View Quote]

kah

Jan 18, 2004, 1:56pm
"johnf" <johnf at 3d-reality.com> wrote in
news:4009c5fe at server1.Activeworlds.com:

> NM - reinstall solved.

Notice that the errors were in the standard library header files, not your
code.

KAH

johnf

Jan 18, 2004, 8:01pm
Yes I did - thats why I thought perhaps a reinstall was necessary

~John

[View Quote]

mr.visualbasic

Feb 2, 2004, 1:08pm
I can't find the error:-(

bowen

Feb 2, 2004, 5:44pm
[View Quote] He solved it.

insane axel a

Feb 19, 2004, 7:18am
lol

"bowen" <newoB at sardna.ten> a écrit dans le message de
news:401ea881$2 at server1.Activeworlds.com...
[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn