I think you are probably not including glpk.lib
Try using the following command:
-lglpk
Hope it helps,
Frank Leanez
From: Antonello Lobianco <[EMAIL PROTECTED]>
To: [email protected]
Subject: [Help-glpk] C++ links, again ;-)
Date: Mon, 28 Nov 2005 17:53:04 +0100
MIME-Version: 1.0
Received: from lists.gnu.org ([199.232.76.165]) by mc8-f36.hotmail.com with
Microsoft SMTPSVC(6.0.3790.211); Mon, 28 Nov 2005 08:53:46 -0800
Received: from localhost ([127.0.0.1] helo=lists.gnu.org)by lists.gnu.org
with esmtp (Exim 4.43)id 1EgmG9-0006Rr-9Afor [EMAIL PROTECTED]; Mon, 28
Nov 2005 11:53:45 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)id
1EgmEn-00064K-Fyfor [email protected]; Mon, 28 Nov 2005 11:52:23 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)id
1EgmEi-00062n-RLfor [email protected]; Mon, 28 Nov 2005 11:52:19 -0500
Received: from [199.232.76.173] (helo=monty-python.gnu.org)by lists.gnu.org
with esmtp (Exim 4.43) id 1EgmEf-000620-1Efor [email protected]; Mon, 28
Nov 2005 11:52:14 -0500
Received: from [193.205.135.210] (helo=didone.econ.unian.it)by
monty-python.gnu.org with esmtp (Exim 4.34) id 1EgmEe-0004Da-Vafor
[email protected]; Mon, 28 Nov 2005 11:52:13 -0500
Received: from [192.168.20.110] (reconnet.econ.unian.it
[193.205.135.254])by didone.econ.unian.it (Postfix) with ESMTP id
7EE77FD29for <[email protected]>; Mon, 28 Nov 2005 18:02:53 +0100 (CET)
X-Message-Info: JGTYoYF78jFhFuXHjx1tGBXQM119qy2+JBR1P0x9Kzk=
X-Mailer: Evolution 2.2.3-10mdk X-BeenThere: [email protected]
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Users list for GLPK (GNU Linear Programming
Kit)"<help-glpk.gnu.org>
List-Unsubscribe:
<http://lists.gnu.org/mailman/listinfo/help-glpk>,<mailto:[EMAIL PROTECTED]>
List-Archive: <http://lists.gnu.org/pipermail/help-glpk>
List-Post: <mailto:[email protected]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Subscribe:
<http://lists.gnu.org/mailman/listinfo/help-glpk>,<mailto:[EMAIL PROTECTED]>
Errors-To: [EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 28 Nov 2005 16:53:46.0675 (UTC)
FILETIME=[4C63C830:01C5F43C]
hello all,
I'm quite new on C/C++ programming..
'just trying to make a test C++ program working with glpk.
Yes, I read the doc and searched the mailing list..
I just added this two lines:
LPX *lp;
lp = lpx_create_prob();
If I don't place any header I get the error:
error: 'LPX' was not declared in this scope
error: 'lp' was not declared in this scope
error: 'lpx_create_prob' was not declared in this scope
But even if I place at the top of the header:
extern "C" {
#include "glpk.h"
}
I still got the error:
undefined reference to `glp_lpx_create_prob'
Where am I wrong?
Using kdevelop on Linux
(but that's the same just using g++ command line, while with gcc is
working..)
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk