diff --git a/src/regex.cpp b/src/regex.cpp index ad8623f7..4b990f86 100644 --- a/src/regex.cpp +++ b/src/regex.cpp @@ -162,7 +162,7 @@ BOOST_REGEX_DECL void BOOST_REGEX_CALL put_mem_block(void* p) } // namespace boost -#if defined(BOOST_RE_USE_VCL) && defined(BOOST_REGEX_BUILD_DLL) +#if defined(BOOST_RE_USE_VCL) && defined(BOOST_REGEX_DYN_LINK) int WINAPI DllEntryPoint(HINSTANCE , unsigned long , void*) { @@ -170,6 +170,17 @@ int WINAPI DllEntryPoint(HINSTANCE , unsigned long , void*) } #endif +#if defined(__IBMCPP__) && defined(BOOST_REGEX_DYN_LINK) +// +// Is this correct - linker complains without it ? +// +int main() +{ + return 0; +} + +#endif +