help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] compilation problem in ns3


From: Ali Marandi
Subject: Re: [Help-glpk] compilation problem in ns3
Date: Sun, 29 Nov 2015 13:42:46 +0100

I know about the differences between C and C++, indeed :-).

My question is the following:

I need to use only six-seven functions in my ns-3 code. Therefore, it looks as though I can create a header which declares only those functions and a ".c" or ".cc" file which defines them. I should be all set then. Am I correct or not ???

On Sun, Nov 29, 2015 at 1:29 PM, Andrew Makhorin <address@hidden> wrote:

>
> Thanks. But as I mentioned before, I am not using gcc !. I am
> compiling with waf.

I didn't mention gcc. I mentioned a C compiler you need to compile the
package.

> But apart from this, you mean there is no way to have the definition
> of some of the methods (the ones I have used in my code), in some
> files ???. This is really strange.

Unlike C++ in the C programming language there are no methods. Glpk is
implemented as a set of functions (routines) and data structures.
Specifications are given in the headers *.h while the function
definitions are given in the source files *.c. Please see
http://en.wikipedia.org/wiki/C_%28programming_language%29 .






reply via email to

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