help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Problem in compiling c programs with glpk 4.45


From: glpk xypron
Subject: Re: [Help-glpk] Problem in compiling c programs with glpk 4.45
Date: Fri, 11 Feb 2011 06:48:02 +0100

Hello Henrique,

GLPK does not provide a Makefile for Dev C++ anymore. Instead
Microsoft Visual Studio Express is supported.

Did you create your own Makefile to compile the GLPK library?

Please, check that the Makefile includes all sources that are
enumerated in glpk-4.45\w32\Makefile_VC, especially look for the
following:
..\src\amd\amd_2.obj \
..\src\amd\amd_aat.obj \
..\src\amd\amd_control.obj \
..\src\amd\amd_defaults.obj \
..\src\amd\amd_dump.obj \
..\src\amd\amd_info.obj \
..\src\amd\amd_order.obj \
..\src\amd\amd_post_tree.obj \
..\src\amd\amd_postorder.obj \
..\src\amd\amd_preprocess.obj \
..\src\amd\amd_valid.obj \
..\src\colamd\colamd.obj

Check that the command line you use to compile sample.c contains
the library, e.g.

gcc.exe -o sample.exe sample.o libglpk.a

If this does not help, please provide the following:
Command line and Makefile you use to compile the library.
Command line (and Makefile if applicable) you use to compile sample.c

Best regards

Xypron

-------- Original-Nachricht --------
> Datum: Thu, 10 Feb 2011 23:27:45 +0000
> Betreff: [Help-glpk] Problem in compiling c programs with glpk 4.45

> 
> I had the following problem when trying to compile (with Dev C++) the file
>  sample.c, which is distributed with the package:
> 
> ##########################################################
> ....
> glpmat.o(.text+0xf5f):glpmat.c: undefined reference to `_glp_amd_defaults'
> glpmat.o(.text+0xff1):glpmat.c: undefined reference to `_glp_amd_order'
> glpmat.o(.text+0x1269):glpmat.c: undefined reference to `_glp_symamd'
> collect2: ld returned 1 exit status
> 
> make.exe: *** [ProjetoGLPK.exe] Error 1
> 
> Execution terminated
> 
> ############################################################                  
>                   

-- 
Schon gehört? GMX hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://www.gmx.net/de/go/toolbar



reply via email to

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