Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2003-02-09 11:11:01


On Sunday, February 9, 2003, at 03:30 AM, Gennadiy Rozental wrote:

> Hi,
>
> Could somebody shed some light on what may be the cause of the
> following
> link errors issued by metrowerks compiler in Boost.Test unit tests:
>
> ### mwld Linker Error:
> # Undefined symbol: '__declspec(dllimport) _getenv (__imp__getenv)'
> # referenced from '_main' in cpp_main.cpp:61
> (libboost_prg_exec_monitor.lib)
> # referenced from '_main' in cpp_main.cpp:71
> (libboost_prg_exec_monitor.lib)
> ### mwld Linker Error:
> # Note: symbol '_getenv' found in 'MSL_C_x86.lib';
> # your project may need MSL_All-DLL_{x86,3DNow,MSE}[_D].lib instead
> ### mwld Linker Error:
> # Undefined symbol: '__declspec(dllimport) _strcmp (__imp__strcmp)'
> # referenced from '_main' in cpp_main.cpp:62
> (libboost_prg_exec_monitor.lib)
> # referenced from '_main' in cpp_main.cpp:72
> (libboost_prg_exec_monitor.lib)
> ### mwld Linker Error:
> # Note: symbol '_strcmp' found in 'MSL_C_x86.lib';
> # your project may need MSL_All-DLL_{x86,3DNow,MSE}[_D].lib instead

It looks to me like the C library is not getting linked into the
executable. There are several possible versions of the C library which
might meet the need (some of them listed in the error messages).

Can you list the libraries that are being linked in? From that I can
probably make a better suggestion.

-Howard


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk