Hello Manish

------------------------------------------------------------
To:           Noli Sicad <nsi...@gmail.com>
Subject:      Re: [Help-glpk] Installing glpk on Mac OS X 10.8
From:         Manish Jain <manish.jain...@gmail.com>
Date:         Wed, 8 Aug 2012 21:27:15 -0700
------------------------------------------------------------

> Hi, Thanks, I have glpk working fine on my Mac now.
>
> The one issue is that we are developing a library that
> can be downloaded and used by users across all
> platforms (Mac, Windows, Linux), both 32 and 64 bit.
> I am now having trouble getting my library to work on
> Windows 64 bit. Does anybody have any experience in
> developing such cross-platform libraries involving
> Glpk?
>
> Thanks.
>
> - Manish

There is some material on cross-compilation on the
GLPK wikibook:

  http://en.wikibooks.org/wiki/GLPK/Cross_Compilation

My sysop and I cross-compiled my command-line C++
application from Linux 64-bit to Windows 64-bit, for
interest, with static linking to GLPK.  We used the GNU
GCC compiler.  It was a straightforward exercise, but I
had been careful to write portable code, for instance,
this kind of rubbish for runtime messaging:

  #if defined (WIN32) || defined (_WIN32) || defined (__WIN32__) ||
defined (_WIN64)
    const char osSlash = '\\';
  #else
    const char osSlash = '/';
  #endif

The Boost libraries can relieve much of this tedium too
and I thoroughly recommend their use for C++:

  http://en.wikipedia.org/wiki/Boost_(C++_libraries)

Assuming that you can make Boost a dependency for
your users.  In most cases, that should be reasonable.

I realize you asked about distributing libraries, but
what was not so easy to port were the myriad of R,
elisp, and bash code that makes my whole box and dice
usable.  In my case, it would be better to give users
an entire Linux distro and my program on a DVD, that
then runs under virtualization on Windows machines.

good luck, Robbie
---
Robbie Morrison
PhD student -- policy-oriented energy system simulation
Technical University of Berlin (TU-Berlin), Germany
University email (redirected) : morri...@iet.tu-berlin.de
Webmail (preferred)           : rob...@actrix.co.nz
[from Webmail client]



_______________________________________________
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to