help-glpk
[Top][All Lists]
Advanced

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

AW: [Help-glpk] Problems compiling GLPK with ODBC support with Intel C++


From: Peter Ingerfeld \(MOPS GmbH & Co. KG\)
Subject: AW: [Help-glpk] Problems compiling GLPK with ODBC support with Intel C++ compiler
Date: Sat, 15 May 2010 15:31:14 +0400

Hi Andrew,

I have a VS 2008 project with the GLPK source code. With VC++ it compiles
and runs. When I convert the project with the integrated "Intel C++ Compiler
Pro -> Use Intel C++" the resulting project won't compile due to this error:



C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\winnt.h(11243):
error: expected a statement
  }
  ^

Regards,
Peter


Here are my compiler settings:

/c /O3 /Og /Oi /Ot /GT /Qipo /I "..\GLPK_Sources\src" /I
"..\GLPK_Sources\include" 
/I "..\GLPK_Sources\src\colamd" /I "..\GLPK_Sources\src\amd" /D
"_CRT_SECURE_NO_WARNINGS" 
/D "HAVE_CONFIG_H" /EHsc /MT /GS /fp:fast /Fo"Release/" /W3 /nologo /Zi /TC
/Qwd4996 /Qwd4244 /Qparallel


These are the linker settings

kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
/OUT:"C:\MOPS\GLPK443\MathProgDLL\Release\MathProg.dll" /VERSION:4.37
/INCREMENTAL:NO /nologo /MANIFEST
/MANIFESTFILE:"Release\MathProg.dll.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'"
/DEF:"..\GLPK_Sources\w32\glpk_4_43.def" /TLBID:1 /DEBUG
/PDB:"C:\MOPS\GLPK443\MathProgDLL\Release\MathProg.pdb" /SUBSYSTEM:WINDOWS
/OPT:REF /OPT:ICF /DYNAMICBASE /NXCOMPAT
/IMPLIB:"C:\MOPS\GLPK443\MathProgDLL\Release\MathProg.lib" /MACHINE:X86 /DLL

And this is the full output:

1>Compiling with Intel(R) C++ 11.1.065 [IA-32]... (Intel C++ Environment)
1>glplib01.c
1>glpenv04.c
1>read_model2.c
1>glpios02.c
1>glpnet02.c
1>glplpx02.c
1>glprng01.c
1>glpspx01.c
1>glpfhv.c
1>glpmpl04.c
1>glpgmp.c
1>glpnpp02.c
1>glpbfx.c
1>glptsp.c
1>glpios09.c
1>glpapi05.c
1>amd_info.c
1>glpnet09.c
1>glpapi16.c
1>glplpf.c
1>glplib03.c
1>glpenv06.c
1>glpios04.c
1>glpmps.c
1>glpnet04.c
1>glpapi11.c
1>glpenv01.c
1>glpcpx.c
1>colamd.c
1>glpmat.c
1>glpios10.c
1>glpmpl06.c
1>..\GLPK_Sources\src\glpmpl06.c(185): warning #589: transfer of control
bypasses initialization of:
1>            variable "quote" (declared at line 138)
1>            variable "len" (declared at line 138)
1>              if (len == CSV_FDLEN_MAX) goto err2;
1>                                        ^
1>
1>glpnpp04.c
1>glpini01.c
1>glpdmx.c
1>glpapi07.c
1>glpsdf.c
1>glpmpl01.c
1>amd_2.c
1>glpapi18.c
1>glpssx01.c
1>glpluf.c
1>glpbfd.c
1>glpenv08.c
1>glpios06.c
1>glpapi02.c
1>glpnet06.c
1>glpapi13.c
1>glpenv03.c
1>glpios01.c
1>glpscl.c
1>amd_preprocess.c
1>glpnet01.c
1>glplpx01.c
1>glpios12.c
1>amd_post_tree.c
1>amd_dump.c
1>glpapi09.c
1>glpscf.c
1>glpmpl03.c
1>glpsql.c
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\winnt.h(11243):
error: expected a statement
1>  }
1>  ^
1>
1>..\GLPK_Sources\src\glpsql.c(48): warning #177: function
"db_mysql_open_int" was declared but never referenced
1>  static void *db_mysql_open_int(TABDCA *dca, int mode, const char
1>               ^
1>
1>glpnpp01.c
1>glpios08.c
1>glpapi04.c
1>glpnet08.c
1>glpapi15.c
1>glplib02.c
1>glpenv05.c
1>glpios03.c
1>glpdmp.c
1>glpnet03.c
1>glplpx03.c
1>glpapi10.c
1>glprng02.c
1>glpavl.c
1>glpspx02.c
1>glpspm.c
1>glpmpl05.c
1>glpnpp03.c
1>glpapi06.c
1>amd_1.c
1>glpapi17.c
1>glpenv07.c
1>glpios05.c
1>amd_defaults.c
1>glpapi01.c
1>glpipm.c
1>glpnet05.c
1>amd_order.c
1>glpapi12.c
1>amd_aat.c
1>glpenv02.c
1>amd_valid.c
1>glpios11.c
1>glpnpp05.c
1>glpini02.c
1>glpapi08.c
1>glpmpl02.c
1>glphbm.c
1>glpapi19.c
1>glpssx02.c
1>glpqmd.c
1>glprgr.c
1>glplux.c
1>glpios07.c
1>glpapi03.c
1>amd_control.c
1>glpnet07.c
1>glpapi14.c
1>amd_postorder.c
1>Build log was saved at
"file://C:\MOPS\GLPK443\MathProgDLL\Release\BuildLog.htm"
1>MathProgDLL - 1 error(s), 2 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


-----Urspr√ľngliche Nachricht-----
Von: Andrew Makhorin [mailto:address@hidden 
Gesendet: Samstag, 15. Mai 2010 05:20
An: Peter Ingerfeld (MOPS GmbH & Co. KG)
Cc: address@hidden
Betreff: Re: [Help-glpk] Problems compiling GLPK with ODBC support with
Intel C++ compiler

> I'm trying to compile GLPK with Intel C++ 11.x compiler, but various
> problems occur when you try to include ODBC support (preprocessor
> definition HAVE_CONFIG_H which enables ODBC support via odbc32.dll).
> With MS VS++ everything works fine.

Could you please provide more detailed information (compiler diagnostic
messages, command-line options, etc.)?

> Has anybody compiled GLPK with Intel successfully? If yes, please
> provide your makefile or VS project. Thanks!

I have. Please see:
http://lists.gnu.org/archive/html/help-glpk/2008-12/msg00036.html

> By the way: 
> Compiling GLPK with the Intel C++ compiler in general is a good idea.
> The Intel code is much faster than the code compiled with VC++.
> Depending on CPU, compiler settings and model, Intel code might be up
> to 50% faster. I just benchmarked a simple matching model which needed
> 58 seconds with Intel and 1:28 minutes with VC++ ...







reply via email to

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