Opened 7 years ago

Closed 7 years ago

#11370 closed Bugs (invalid)

Boost Test Library dose not work with Intel-Compiler.

Reported by: matthias.busch@… Owned by: Gennadiy Rozental
Milestone: To Be Determined Component: test
Version: Boost 1.58.0 Severity: Regression
Keywords: Cc:

Description

Unit-Tests written with the Boost-Test-Library do not create a MAIN-Function when compiled with Intel-Compiler. (When switching to MS-Compiler it is working perfectly)

Even setting this Defines manual dose not help.

BOOST_TEST_MAIN BOOST_AUTO_TEST_MAIN

My Setup is:

VS2013 Update2 Intel Compiler 15.0.2.179 Platform Toolset v120

The Error is:

xilink: executing 'link' MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol main referenced in function tmainCRTStartup

Change History (2)

comment:1 by anonymous, 7 years ago

Solved.

The problem was the combination of Compiler/Linker Settings. The Following Settings must match together.

  • #define BOOST_TEST_DYN_LINK
  • Multi Threadded Debug DLL (/MDd)
  • Subsystem: CONSOLE

Sorry and Thank You Matthias

comment:2 by Raffi Enficiaud, 7 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.