X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "matthew.green5" Newsgroups: comp.os.msdos.djgpp Subject: allegro errors Lines: 198 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: Date: Mon, 24 Dec 2001 16:20:04 -0000 NNTP-Posting-Host: 62.254.76.228 X-Complaints-To: abuse AT ntlworld DOT com X-Trace: news6-win.server.ntlworld.com 1009210732 62.254.76.228 (Mon, 24 Dec 2001 16:18:52 GMT) NNTP-Posting-Date: Mon, 24 Dec 2001 16:18:52 GMT Organization: ntlworld News Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I have just started to attempt to program using the allegro libraries and visual c++ 4.0. Here is the program: #include int main() { allegro_init(); install_keyboard(); set_gfx_mode(GFX_VGA,320,200,0,0); textout_centre(screen,font,"Ready. Beep.",160,100,255); readkey(); return 0; } and below is the very long error message I received. I got the same error using djgpp as well. Is there any way to fix this? It seems like there are lots of syntax errors within the library files themselves. Is it just that the library files are in 'C' and the code is 'C++' of am I way off the mark? Compiling... Text1.cpp C:\djgpp\INCLUDE\inlines/pc.h(11) : error C2239: unexpected token 'type' following declaration of '__inline__' C:\djgpp\INCLUDE\inlines/pc.h(11) : error C2062: type 'unsigned char' unexpected C:\djgpp\INCLUDE\inlines/pc.h(14) : error C2501: '__asm__' : missing decl-specifiers C:\djgpp\INCLUDE\inlines/pc.h(14) : error C2239: unexpected token 'identifier' following declaration of '__asm__' C:\djgpp\INCLUDE\inlines/pc.h(14) : error C2061: syntax error : identifier '__volatile__' C:\djgpp\INCLUDE\inlines/pc.h(17) : error C2059: syntax error : 'return' C:\djgpp\INCLUDE\inlines/pc.h(21) : error C2239: unexpected token 'type' following declaration of '__inline__' C:\djgpp\INCLUDE\inlines/pc.h(21) : error C2062: type 'unsigned short' unexpected C:\djgpp\INCLUDE\inlines/pc.h(24) : error C2501: '__asm__' : missing decl-specifiers C:\djgpp\INCLUDE\inlines/pc.h(24) : error C2086: '__asm__' : redefinition C:\djgpp\INCLUDE\inlines/pc.h(24) : error C2239: unexpected token 'identifier' following declaration of '__asm__' C:\djgpp\INCLUDE\inlines/pc.h(24) : error C2061: syntax error : identifier '__volatile__' C:\djgpp\INCLUDE\inlines/pc.h(27) : error C2059: syntax error : 'return' C:\djgpp\INCLUDE\inlines/pc.h(31) : error C2239: unexpected token 'type' following declaration of '__inline__' C:\djgpp\INCLUDE\inlines/pc.h(31) : error C2062: type 'unsigned long' unexpected C:\djgpp\INCLUDE\inlines/pc.h(34) : error C2501: '__asm__' : missing decl-specifiers C:\djgpp\INCLUDE\inlines/pc.h(34) : error C2086: '__asm__' : redefinition C:\djgpp\INCLUDE\inlines/pc.h(34) : error C2239: unexpected token 'identifier' following declaration of '__asm__' C:\djgpp\INCLUDE\inlines/pc.h(34) : error C2061: syntax error : identifier '__volatile__' C:\djgpp\INCLUDE\inlines/pc.h(37) : error C2059: syntax error : 'return' C:\djgpp\INCLUDE\inlines/pc.h(41) : error C2239: unexpected token 'type' following declaration of '__inline__' C:\djgpp\INCLUDE\inlines/pc.h(41) : error C2062: type 'void' unexpected C:\djgpp\INCLUDE\inlines/pc.h(50) : error C2239: unexpected token 'type' following declaration of '__inline__' C:\djgpp\INCLUDE\inlines/pc.h(50) : error C2062: type 'void' unexpected C:\djgpp\INCLUDE\inlines/pc.h(56) : error C2143: syntax error : missing ';' before '}' C:\djgpp\INCLUDE\inlines/pc.h(65) : error C2143: syntax error : missing ';' before '}' C:\djgpp\INCLUDE\dir.h(25) : error C2239: unexpected token 'identifier' following declaration of 'lfn_handle' C:\djgpp\INCLUDE\dir.h(25) : error C2061: syntax error : identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(26) : error C2239: unexpected token 'identifier' following declaration of 'lfn_ctime' C:\djgpp\INCLUDE\dir.h(26) : error C2061: syntax error : identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(27) : error C2239: unexpected token 'identifier' following declaration of 'lfn_cdate' C:\djgpp\INCLUDE\dir.h(27) : error C2061: syntax error : identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(28) : error C2239: unexpected token 'identifier' following declaration of 'lfn_atime' C:\djgpp\INCLUDE\dir.h(28) : error C2061: syntax error : identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(29) : error C2239: unexpected token 'identifier' following declaration of 'lfn_adate' C:\djgpp\INCLUDE\dir.h(29) : error C2061: syntax error : identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(30) : error C2239: unexpected token 'identifier' following declaration of '_ff_reserved' C:\djgpp\INCLUDE\dir.h(30) : error C2061: syntax error : identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(31) : error C2239: unexpected token 'identifier' following declaration of 'ff_attrib' C:\djgpp\INCLUDE\dir.h(31) : error C2061: syntax error : identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(32) : error C2239: unexpected token 'identifier' following declaration of 'ff_ftime' C:\djgpp\INCLUDE\dir.h(32) : error C2061: syntax error : identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(33) : error C2239: unexpected token 'identifier' following declaration of 'ff_fdate' C:\djgpp\INCLUDE\dir.h(33) : error C2061: syntax error : identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(34) : error C2239: unexpected token 'identifier' following declaration of 'ff_fsize' C:\djgpp\INCLUDE\dir.h(34) : error C2061: syntax error : identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(35) : error C2239: unexpected token 'identifier' following declaration of 'ff_name' C:\djgpp\INCLUDE\dir.h(35) : error C2061: syntax error : identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(36) : error C2143: syntax error : missing ';' before '}' C:\djgpp\INCLUDE\dir.h(39) : error C2059: syntax error : 'identifier' C:\djgpp\INCLUDE\dir.h(39) : error C2146: syntax error : missing ';' before identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(39) : error C2059: syntax error : '(' C:\djgpp\INCLUDE\dir.h(39) : error C2059: syntax error : ')' C:\djgpp\INCLUDE\dir.h(39) : error C2143: syntax error : missing ';' before ')' C:\djgpp\INCLUDE\dir.h(39) : error C2238: unexpected token(s) preceding ';' C:\djgpp\INCLUDE\dir.h(40) : error C2632: 'long' followed by 'long' is illegal C:\djgpp\INCLUDE\dir.h(40) : error C2059: syntax error : 'identifier' C:\djgpp\INCLUDE\dir.h(40) : error C2146: syntax error : missing ';' before identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(40) : error C2059: syntax error : '(' C:\djgpp\INCLUDE\dir.h(40) : error C2535: 'int ffblklfn::__attribute__(void)' : member function already defined or declared C:\djgpp\INCLUDE\dir.h(40) : error C2059: syntax error : ')' C:\djgpp\INCLUDE\dir.h(40) : error C2143: syntax error : missing ';' before ')' C:\djgpp\INCLUDE\dir.h(40) : error C2238: unexpected token(s) preceding ';' C:\djgpp\INCLUDE\dir.h(41) : error C2632: 'long' followed by 'long' is illegal C:\djgpp\INCLUDE\dir.h(41) : error C2059: syntax error : 'identifier' C:\djgpp\INCLUDE\dir.h(41) : error C2146: syntax error : missing ';' before identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(41) : error C2059: syntax error : '(' C:\djgpp\INCLUDE\dir.h(41) : error C2535: 'int ffblklfn::__attribute__(void)' : member function already defined or declared C:\djgpp\INCLUDE\dir.h(41) : error C2059: syntax error : ')' C:\djgpp\INCLUDE\dir.h(41) : error C2143: syntax error : missing ';' before ')' C:\djgpp\INCLUDE\dir.h(41) : error C2238: unexpected token(s) preceding ';' C:\djgpp\INCLUDE\dir.h(42) : error C2632: 'long' followed by 'long' is illegal C:\djgpp\INCLUDE\dir.h(42) : error C2059: syntax error : 'identifier' C:\djgpp\INCLUDE\dir.h(42) : error C2146: syntax error : missing ';' before identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(42) : error C2059: syntax error : '(' C:\djgpp\INCLUDE\dir.h(42) : error C2535: 'int ffblklfn::__attribute__(void)' : member function already defined or declared C:\djgpp\INCLUDE\dir.h(42) : error C2059: syntax error : ')' C:\djgpp\INCLUDE\dir.h(42) : error C2143: syntax error : missing ';' before ')' C:\djgpp\INCLUDE\dir.h(42) : error C2238: unexpected token(s) preceding ';' C:\djgpp\INCLUDE\dir.h(43) : error C2059: syntax error : 'identifier' C:\djgpp\INCLUDE\dir.h(43) : error C2146: syntax error : missing ';' before identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(43) : error C2059: syntax error : '(' C:\djgpp\INCLUDE\dir.h(43) : error C2535: 'int ffblklfn::__attribute__(void)' : member function already defined or declared C:\djgpp\INCLUDE\dir.h(43) : error C2059: syntax error : ')' C:\djgpp\INCLUDE\dir.h(43) : error C2143: syntax error : missing ';' before ')' C:\djgpp\INCLUDE\dir.h(43) : error C2238: unexpected token(s) preceding ';' C:\djgpp\INCLUDE\dir.h(44) : error C2059: syntax error : 'identifier' C:\djgpp\INCLUDE\dir.h(44) : error C2146: syntax error : missing ';' before identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(44) : error C2059: syntax error : '(' C:\djgpp\INCLUDE\dir.h(44) : error C2535: 'int ffblklfn::__attribute__(void)' : member function already defined or declared C:\djgpp\INCLUDE\dir.h(44) : error C2059: syntax error : ')' C:\djgpp\INCLUDE\dir.h(44) : error C2143: syntax error : missing ';' before ')' C:\djgpp\INCLUDE\dir.h(44) : error C2238: unexpected token(s) preceding ';' C:\djgpp\INCLUDE\dir.h(45) : error C2632: 'long' followed by 'long' is illegal C:\djgpp\INCLUDE\dir.h(45) : error C2059: syntax error : 'identifier' C:\djgpp\INCLUDE\dir.h(45) : error C2146: syntax error : missing ';' before identifier '__attribute__' C:\djgpp\INCLUDE\dir.h(45) : error C2059: syntax error : '(' C:\djgpp\INCLUDE\dir.h(45) : error C2535: 'int ffblklfn::__attribute__(void)' : member function already defined or declared C:\djgpp\INCLUDE\dir.h(45) : error C2059: syntax error : ')' C:\djgpp\INCLUDE\dir.h(45) : error C2143: syntax error : missing ';' before ')' C:\djgpp\INCLUDE\dir.h(45) : error C2238: unexpected token(s) preceding ';' C:\djgpp\INCLUDE\dir.h(45) : fatal error C1003: error count exceeds 100; stopping compilation Error executing cl.exe. Text1.obj - 102 error(s), 0 warning(s)