help-glpk
[Top][All Lists]
Advanced

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

RE: [Help-glpk] C++ links, again ;-)


From: Frank Leanez
Subject: RE: [Help-glpk] C++ links, again ;-)
Date: Tue, 29 Nov 2005 22:34:29 -0400

I think you are probably not including glpk.lib

Try using the following command:

-lglpk

Hope it helps,
Frank Leanez


From: Antonello Lobianco <address@hidden>
To: address@hidden
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 address@hidden; 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 address@hidden; 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 address@hidden; 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 address@hidden; 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 address@hidden; 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 <address@hidden>; Mon, 28 Nov 2005 18:02:53 +0100 (CET)
X-Message-Info: JGTYoYF78jFhFuXHjx1tGBXQM119qy2+JBR1P0x9Kzk=
X-Mailer: Evolution 2.2.3-10mdk X-BeenThere: address@hidden
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:address@hidden>
List-Archive: <http://lists.gnu.org/pipermail/help-glpk>
List-Post: <mailto:address@hidden>
List-Help: <mailto:address@hidden>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/help-glpk>,<mailto:address@hidden>
Errors-To: address@hidden
Return-Path: address@hidden
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
address@hidden
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/





reply via email to

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