Skip to content

static compilation problem under Windows 32 bits #12

@svigerske

Description

@svigerske

Issue created by migration from Trac.

Original creator: @ycollet

Original creation time: 2017-05-09 11:57:58

Assignee: somebody

Version:

When I try to compile CoinMP on Windows in 32 bits, I am not able to link my example with the library. The linker complains about missing sympbols.
I tracked down the problem. It comes from CoinMP.h:

#if defined(_MSC_VER) && !defined(HAVE_CONFIG_H)

# define SOLVCALL   __stdcall
# if defined(SOLVER_EXPORT) && !defined(_WIN64)
#  define SOLVAPI  __declspec(dllexport)
# endif
# if defined(SOLVER_IMPORT)
#  define SOLVAPI __declspec(dllimport)
# endif

If I remove "# define SOLVCALL __stdcall" and " && !defined(_WIN64)" everything is working fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions