[OS-tickets] [Optimization Services] #62: Make test fails for CBC with 78 unresolved external symbols when building using msvc at command line

Optimization Services coin-trac at coin-or.org
Mon Jan 8 17:04:13 EST 2018


#62: Make test fails for CBC with 78 unresolved external symbols when building
using msvc at command line
----------------------------+---------------------------------
  Reporter:  devos          |      Owner:
      Type:  defect         |     Status:  new
  Priority:  critical       |  Milestone:
 Component:  other/unknown  |    Version:  trunk
Resolution:                 |   Keywords:  trunk 5287, OS, CBC
----------------------------+---------------------------------

Comment (by devos):

 I was finally able to get the build to complete. These are the steps I
 took:

 * I had to uninstall the smaller MSYS installation and install MinGW
 (www.mingw.org) to get the ar and dos2unix programs. I installed only
 mingw32-base, msys-base, msys-patch, msys-unzip. I also installed msys-
 perl and msys-m4 because I needed to build autotools to fix another issue.
 * Because the OS 2.10 User's Manual states that the gcc compiler included
 in MinGW can interact negatively with the Microsoft cl compiler, I removed
 gcc from the MinGW installation. These components of 'The GNU C Compiler'
 were removed: mingw32-gcc bin, mingw32-gcc dev, mingw32-gcc lic. 'The GNU
 C Compiler Shared Runtime Library' (mingw32-libgcc dll) must be kept
 because dos2unix depends on it.
 * I added the configuration option --enable-msvc to force use of the cl
 compiler.
 * I added LDFLAGS=-no-undefined to the make command to pass this option to
 libtool to enable it to link shared DLLs.

--
Ticket URL: <https://projects.coin-or.org/OS/ticket/62#comment:9>
Optimization Services <http://projects.coin-or.org/OS>
An interface for Web services implementing optimization.



More information about the OS-tickets mailing list