help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] GLPK compilation problem with Borland 5


From: Andrew Makhorin
Subject: [Help-glpk] GLPK compilation problem with Borland 5
Date: Sun, 3 Aug 2008 00:19:33 +0400

> I downloaded glpk 4.29 from one of the mirrors and tried to compile it
> by running the included Build_GLPK_with_BC5.bat file. Here is theoutput:
>
> C:\glpk\glpk-4.29\w32>rem Build GLPK with Borland C++ 5.0
> C:\glpk\glpk-4.29\w32>rem NOTE: Make sure that HOME variable specifies
> correct path.C:\glpk\glpk-4.29\w32>set HOME=C:\BC5
> C:\glpk\glpk-4.29\w32>copy config_BC5 config.h        1 file(s) copied.
> C:\glpk\glpk-4.29\w32>C:\BC5\bin\make.exe -f Makefile_BC5
> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>         bcc32.exe -I. -DHAVE_CONFIG_H -wall -I..\include
> -o..\src\glpapi01.obj -c ..\src\glpapi01.c
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland..\src\glpapi01.c:
> Error E2034 ..\src\glpapi01.c 71: Cannot convert 'void *' to 'GLPROW *
> *' in function create_prob(glp_prob *)
> Error E2034 ..\src\glpapi01.c 72: Cannot convert 'void *' to 'GLPCOL *
> *' in function create_prob(glp_prob *)
> Error E2034 ..\src\glpapi01.c 76: Cannot convert 'void *' to 'int *'
> in function create_prob(glp_prob *)
> [...]

I don't know why, however, the bcc32 compiler installed on your system
performs C++ compilation rather than C as defined by filename extension.
If I rename '.c' to '.cpp' and run bcc32, I get the same errors as you.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]