Compiliing problems with BC 4.5 under Windows 95 
Author Message
 Compiliing problems with BC 4.5 under Windows 95

The error message is:

----------------------------------------------------
MAKE Version 3.7  Copyright (c) 1987, 1994 Borland International

Borland C++ 4.51 for Win32 Copyright (c) 1993, 1994 Borland International
HELLO.C:
Loaded pre-compiled headers.
Warning c:\BC45\INCLUDE\excpt.h 263: Redefinition of '_CRTAPI1' is not identical
Warning c:\BC45\INCLUDE\excpt.h 264: Redefinition of '_CRTAPI2' is not identical
Error c:\BC45\INCLUDE\stdarg.h 27: Multiple declaration for 'va_list'
Warning c:\BC45\INCLUDE\mmsystem.h 3453: Redefinition of
'MIXERCONTROL_CONTROLTYPE_BOOLEAN' is not identical
Warning c:\BC45\INCLUDE\mmsystem.h 3484: Redefinition of
'MIXERCONTROL_CONTROLTYPE_UNSIGNE' is not identical
Warning HELLO.C 29: Parameter 'dummy' is never used in function hello
Warning HELLO.C 29: Parameter 'argc' is never used in function hello
Warning HELLO.C 29: Parameter 'argv' is never used in function hello
Warning HELLO.C 44: Call to function 'Tcl_CreateCommand' with no prototype
in function Hello_Init
*** 1 errors in Compile ***

** error 1 ** deleting hello.obj
-----------------------------------------------------------

In the simple program hello.c, #include "c:\bc45\include\windows.h"
is located on the first line.

Inside "windows.h", the files "stdarg.h" and "winbase.h"
are refered.

In  stdarg.h, "va_list" is definded as "typedef void _FAR *va_list;".
In winbase.h, "va_list is definded as one argument in the function
prototype of one Windows APIs as follows:

WINBASEAPI
DWORD
WINAPI
FormatMessageA(
    DWORD dwFlags,
    LPCVOID lpSource,
    DWORD dwMessageId,
    DWORD dwLanguageId,
    LPSTR lpBuffer,
    DWORD nSize,
    va_list *Arguments
    );

I am not clear why the compiler made the above complain
(Multiple declaration for 'va_list').
Any advice will be appreciated.
Thanks.



Mon, 30 Mar 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Compiliing problems with BC 4.5 under Windows 95

2. Help: linking errors with BC 4.5 under Windows 95

3. Help Borland C++ version 4.5 / Builder 1.0 for Windows 95

4. Problem with memory allocation in BC 4.5

5. OWL 1.0 with BC 4.5

6. Help Needed With CREATESTRUCT (BC 4.5)

7. Q about BC 4.5 and DOS interrupts

8. Q about BC 4.5 and DOS interrupts

9. stacksize adjustment with BC 4.5

10. Reading .DBF from BC 4.5 BDE

11. VER.LIB in BC 4.5

 

 
Powered by phpBB® Forum Software