[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-glpk] fix to compile with clang
From: |
Andrew Makhorin |
Subject: |
Re: [Bug-glpk] fix to compile with clang |
Date: |
Mon, 17 Mar 2014 14:22:26 +0400 |
On Mon, 2014-03-17 at 02:41 -0400, address@hidden wrote:
> One small fix to version 4.53, add a "0" after this return:
>
>
> glpapi06.c:818:7: error: non-void function 'glp_set_it_cnt' should return
> a value
> [-Wreturn-type]
> return;
> ^
> 1 warning and 1 error generated.
> make[2]: *** [libglpk_la-glpapi06.lo] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> glpk-4.53$
> glpk-4.53$ gcc --version
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
> --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
> Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
> Target: x86_64-apple-darwin13.1.0
> Thread model: posix
> glpk-4.53$
>
>
Thank you for your bug report.
The correct way to fix the error is to change the function header in
both files glpapi06.c and glpk.h to the following one:
void glp_set_it_cnt(glp_prob *P, int it_cnt)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Bug-glpk] fix to compile with clang,
Andrew Makhorin <=