<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Strange linker error building TBB under mingw in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763326#M11</link>
    <description>Hi, I was able to check the search path for ld with this command:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;$ ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;SEARCH_DIR("=/usr/local/lib")&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;SEARCH_DIR("=/lib")&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;SEARCH_DIR("=/usr/lib")&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;There are definitely no other copies of tbb.dll in those locations. I also passed the version of tbb.dll that I built on my machine to my colleague. when he tries to link against my version of tbb.dll, he gets the same linker error. He passed me his version of tbb.dll, and I can link against that version without error.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have attached my tbb build log for reference, although I don't see anything worrisome in there.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]Created .\build\windows_ia32_gcc_mingw_release and ..._debug directories
C:/MinGW/bin/mingw32-make -C ".\build\windows_ia32_gcc_mingw_debug"  -r -f ../../build/Makefile.tbb cfg=debug tbb_root=../..
mingw32-make[1]: Entering directory `c:/Users/cpadwick/ipl2-workspace/tbb/tbb30_20110704oss/build/windows_ia32_gcc_mingw_debug'
../../build/Makefile.tbb:39: CONFIG: cfg=debug arch=ia32 compiler=gcc os=windows runtime=mingw
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_hash_map.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_vector.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/dynamic_link.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/itt_notify.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/cache_aligned_allocator.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/pipeline.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_rw_mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/reader_writer_lock.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_rw_mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/critical_section.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task.cpp
cmd /C cscript /nologo /E:jscript ../../build/version_info_windows.js gcc ia32 "g++ -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses " &amp;gt; version_string.tmp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I. -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_misc.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_misc_ex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/recursive_mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/condition_variable.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_thread.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_monitor.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/private_server.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/rml/client/rml_tbb.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task_group_context.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/governor.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/market.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/arena.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/scheduler.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/observer_proxy.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_statistics.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_main.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/concurrent_vector_v2.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/concurrent_queue_v2.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/spin_rw_mutex_v2.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/task_v2.cpp
cmd /C "....buildgenerate_tbbvars.bat"
Generating local tbbvars.bat
Generating local tbbvars.sh
Generating local tbbvars.csh
g++ -E -x c++ ../../src/tbb/lin32-tbb-export.def -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses  -I../../src -I../../src/rml/include -I../../include &amp;gt; tbb.def
g++  -o tbb_debug.dll concurrent_hash_map.o concurrent_queue.o concurrent_vector.o dynamic_link.o itt_notify.o cache_aligned_allocator.o pipeline.o queuing_mutex.o queuing_rw_mutex.o reader_writer_lock.o spin_rw_mutex.o spin_mutex.o critical_section.o task.o tbb_misc.o tbb_misc_ex.o mutex.o recursive_mutex.o condition_variable.o tbb_thread.o concurrent_monitor.o private_server.o rml_tbb.o task_group_context.o governor.o market.o arena.o scheduler.o observer_proxy.o tbb_statistics.o tbb_main.o concurrent_vector_v2.o concurrent_queue_v2.o spin_rw_mutex_v2.o task_v2.o    -lpsapi -shared -Wl,--enable-auto-import -Wl,-export-all-symbols -m32  -Wl,--version-script,tbb.def
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: task.o: warning: duplicate section `.rdata$_ZTIN3tbb4taskE[typeinfo for tbb::task]' has different size

c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: scheduler.o: warning: duplicate section `.rdata$_ZTIN3tbb4taskE[typeinfo for tbb::task]' has different size

mingw32-make[1]: Leaving directory `c:/Users/cpadwick/ipl2-workspace/tbb/tbb30_20110704oss/build/windows_ia32_gcc_mingw_debug'
C:/MinGW/bin/mingw32-make -C ".\build\windows_ia32_gcc_mingw_release"  -r -f ../../build/Makefile.tbb cfg=release tbb_root=../..
mingw32-make[1]: Entering directory `c:/Users/cpadwick/ipl2-workspace/tbb/tbb30_20110704oss/build/windows_ia32_gcc_mingw_release'
../../build/Makefile.tbb:39: CONFIG: cfg=release arch=ia32 compiler=gcc os=windows runtime=mingw
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_hash_map.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_vector.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/dynamic_link.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/itt_notify.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/cache_aligned_allocator.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/pipeline.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_rw_mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/reader_writer_lock.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_rw_mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/critical_section.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task.cpp
cmd /C cscript /nologo /E:jscript ../../build/version_info_windows.js gcc ia32 "g++ -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses " &amp;gt; version_string.tmp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I. -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_misc.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_misc_ex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/recursive_mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/condition_variable.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_thread.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_monitor.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/private_server.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/rml/client/rml_tbb.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task_group_context.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/governor.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/market.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/arena.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/scheduler.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/observer_proxy.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_statistics.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_main.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/concurrent_vector_v2.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/concurrent_queue_v2.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/spin_rw_mutex_v2.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/task_v2.cpp
cmd /C "....buildgenerate_tbbvars.bat"
Generating local tbbvars.bat
Generating local tbbvars.sh
Generating local tbbvars.csh
g++ -E -x c++ ../../src/tbb/lin32-tbb-export.def -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses  -I../../src -I../../src/rml/include -I../../include &amp;gt; tbb.def
g++  -o tbb.dll concurrent_hash_map.o concurrent_queue.o concurrent_vector.o dynamic_link.o itt_notify.o cache_aligned_allocator.o pipeline.o queuing_mutex.o queuing_rw_mutex.o reader_writer_lock.o spin_rw_mutex.o spin_mutex.o critical_section.o task.o tbb_misc.o tbb_misc_ex.o mutex.o recursive_mutex.o condition_variable.o tbb_thread.o concurrent_monitor.o private_server.o rml_tbb.o task_group_context.o governor.o market.o arena.o scheduler.o observer_proxy.o tbb_statistics.o tbb_main.o concurrent_vector_v2.o concurrent_queue_v2.o spin_rw_mutex_v2.o task_v2.o    -lpsapi -shared -Wl,--enable-auto-import -Wl,-export-all-symbols -m32  -Wl,--version-script,tbb.def
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: task.o: warning: duplicate section `.rdata$_ZTIN3tbb4taskE[typeinfo for tbb::task]' has different size

c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: scheduler.o: warning: duplicate section `.rdata$_ZTIN3tbb4taskE[typeinfo for tbb::task]' has different size

mingw32-make[1]: Leaving directory `c:/Users/cpadwick/ipl2-workspace/tbb/tbb30_20110704oss/build/windows_ia32_gcc_mingw_release'
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;</description>
    <pubDate>Thu, 12 Jan 2012 16:49:29 GMT</pubDate>
    <dc:creator>cpadwick</dc:creator>
    <dc:date>2012-01-12T16:49:29Z</dc:date>
    <item>
      <title>Strange linker error building TBB under mingw</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763324#M9</link>
      <description>Hi, I have encounted a strange linker error building TBB under mingw and I need some help.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV class="sectionbody"&gt;&lt;BR /&gt;My platform:&lt;/DIV&gt;&lt;DIV style="padding-left: 20pt;"&gt;Windows 7, 64 bit, SP1&lt;/DIV&gt;&lt;DIV style="padding-left: 20pt;"&gt;Mingw installed from mingw-get-inst-20110802.exe&lt;/DIV&gt;&lt;DIV style="padding-left: 20pt;"&gt;gcc --version 4.5.2&lt;/DIV&gt;&lt;DIV style="padding-left: 20pt;"&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV class="sectionbody"&gt;&lt;BR /&gt;TBB Version:&lt;/DIV&gt;&lt;DIV style="padding-left: 20pt;" class="sectionbody"&gt;tbb30_20110705oss&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;BR /&gt;TBB make command: &amp;lt;&amp;gt;&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 20pt;"&gt;mingw32-make arch=ia32 compiler=gcc runtime=mingw tbb&lt;/DIV&gt;&lt;DIV style="padding-left: 20pt;"&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;The build of TBB completes successfully. Now I try to build the following program (main.cpp):&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]#include "tbb/task_scheduler_init.h"

using namespace tbb;

int main() {
task_scheduler_init init;
return 0;
}[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;with this command:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;g++ main.cpp -I./tbb/tbb30_20110704oss/include/ -L./tbb/tbb30_20110704oss/build/windows_ia32_gcc_mingw_release/ -ltbb&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;and I get this linker error:&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;C:\\Users\\cpadwick\\AppData\\Local\\Temp\\ccAWoCp3.o:main.cpp:(.text$_ZN3tbb19task_scheduler_initC1Eij[tbb::task_scheduler_init::task_scheduler_init(int, unsigned int)]+0x33): undefined reference to `tbb::task_scheduler_init::initialize(int, unsigned int)'&lt;/DIV&gt;&lt;DIV&gt;C:\\Users\\cpadwick\\AppData\\Local\\Temp\\ccAWoCp3.o:main.cpp:(.text$_ZN3tbb19task_scheduler_initD1Ev[tbb::task_scheduler_init::~task_scheduler_init()]+0x16): undefined reference to `tbb::task_scheduler_init::terminate()'&lt;/DIV&gt;&lt;DIV&gt;collect2: ld returned 1 exit status&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Things I have tried already:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 20pt;"&gt;&lt;BR /&gt;-The -L path is correct.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 20pt;"&gt;&lt;BR /&gt;-the library tbb.dll exists.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 20pt;"&gt;&lt;BR /&gt;-I have tried running "nm" on tbb.dll and also on main.o. Here are the results, filtered by symbols with task_scheduler_init in the name:&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;$ nm main.o | grep task_scheduler_init&lt;/DIV&gt;&lt;DIV&gt;00000000 t .text$_ZN3tbb19task_scheduler_initC1Eij&lt;/DIV&gt;&lt;DIV&gt;00000000 t .text$_ZN3tbb19task_scheduler_initD1Ev&lt;/DIV&gt;&lt;DIV&gt;    U __ZN3tbb19task_scheduler_init10initializeEij&lt;/DIV&gt;&lt;DIV&gt;    U __ZN3tbb19task_scheduler_init9terminateEv&lt;/DIV&gt;&lt;DIV&gt;00000000 T __ZN3tbb19task_scheduler_initC1Eij&lt;/DIV&gt;&lt;DIV&gt;00000000 T __ZN3tbb19task_scheduler_initD1Ev&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BR /&gt;$ nm ./tbb/tbb30_20110704oss/build/windows_ia32_gcc_mingw_release/tbb.dll | grep task_scheduler_init&lt;/DIV&gt;&lt;DIV&gt;676c9ce4 T __ZN3tbb19task_scheduler_init10initializeEi&lt;/DIV&gt;&lt;DIV&gt;676c9c58 T __ZN3tbb19task_scheduler_init10initializeEij&lt;/DIV&gt;&lt;DIV&gt;676c9b90 T __ZN3tbb19task_scheduler_init19default_num_threadsEv&lt;/DIV&gt;&lt;DIV&gt;676c9b28 T __ZN3tbb19task_scheduler_init9terminateEv&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BR /&gt;I also ran "nm --demangle" on both main.o and tbb.dll. Here are the results:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BR /&gt;$ nm --demangle main.o | grep task_scheduler_init&lt;/DIV&gt;&lt;DIV&gt;00000000 t .text$_ZN3tbb19task_scheduler_initC1Eij&lt;/DIV&gt;&lt;DIV&gt;00000000 t .text$_ZN3tbb19task_scheduler_initD1Ev&lt;/DIV&gt;&lt;DIV&gt;    U tbb::task_scheduler_init::initialize(int, unsigned int)&lt;/DIV&gt;&lt;DIV&gt;    U tbb::task_scheduler_init::terminate()&lt;/DIV&gt;&lt;DIV&gt;00000000 T tbb::task_scheduler_init::task_scheduler_init(int, unsigned int)&lt;/DIV&gt;&lt;DIV&gt;00000000 T tbb::task_scheduler_init::~task_scheduler_init()&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;,&lt;BR /&gt;&lt;BR /&gt;$ nm --demangle ./tbb/tbb30_20110704oss/build/windows&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt; _ia32_gcc_mingw_release/tbb.dll | grep task_scheduler_init&lt;/DIV&gt;&lt;DIV&gt;676c9ce4 T tbb::task_scheduler_init::initialize(int)&lt;/DIV&gt;&lt;DIV&gt;676c9c58 T tbb::task_scheduler_init::initialize(int, unsigned int)&lt;/DIV&gt;&lt;DIV&gt;676c9b90 T tbb::task_scheduler_init::default_num_threads()&lt;/DIV&gt;&lt;DIV&gt;676c9b28 T tbb::task_scheduler_init::terminate()&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BR /&gt;So the mystery appears to be why can't ld resolve the symboltbb::task_scheduler_init::initialize(int, unsigned int) when it is *clearly* being exported in the tbb library? A parallel (har har) mystery is that a colleague of mine can build the same version of TBB with the same version of mingw and experiences no issues when trying to link the same example program.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated. Thanks!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Jan 2012 18:56:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763324#M9</guid>
      <dc:creator>cpadwick</dc:creator>
      <dc:date>2012-01-10T18:56:53Z</dc:date>
    </item>
    <item>
      <title>Strange linker error building TBB under mingw</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763325#M10</link>
      <description>hello,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Isnon-mingw version of tbb.dll around?&lt;/DIV&gt;&lt;DIV&gt;it looks like ld picks up non-mingw version of tbb.dll beforemingw version of tbb.dll. I do not remember exactly whether $LIB/$LD_LIBRARY_PATH/$PATH or-L should go first to linker for mingw.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;hope this helps.&lt;/DIV&gt;&lt;DIV&gt;--Vladimir&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Jan 2012 04:43:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763325#M10</guid>
      <dc:creator>Vladimir_P_1234567890</dc:creator>
      <dc:date>2012-01-11T04:43:54Z</dc:date>
    </item>
    <item>
      <title>Strange linker error building TBB under mingw</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763326#M11</link>
      <description>Hi, I was able to check the search path for ld with this command:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;$ ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;SEARCH_DIR("=/usr/local/lib")&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;SEARCH_DIR("=/lib")&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;SEARCH_DIR("=/usr/lib")&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;There are definitely no other copies of tbb.dll in those locations. I also passed the version of tbb.dll that I built on my machine to my colleague. when he tries to link against my version of tbb.dll, he gets the same linker error. He passed me his version of tbb.dll, and I can link against that version without error.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have attached my tbb build log for reference, although I don't see anything worrisome in there.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]Created .\build\windows_ia32_gcc_mingw_release and ..._debug directories
C:/MinGW/bin/mingw32-make -C ".\build\windows_ia32_gcc_mingw_debug"  -r -f ../../build/Makefile.tbb cfg=debug tbb_root=../..
mingw32-make[1]: Entering directory `c:/Users/cpadwick/ipl2-workspace/tbb/tbb30_20110704oss/build/windows_ia32_gcc_mingw_debug'
../../build/Makefile.tbb:39: CONFIG: cfg=debug arch=ia32 compiler=gcc os=windows runtime=mingw
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_hash_map.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_vector.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/dynamic_link.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/itt_notify.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/cache_aligned_allocator.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/pipeline.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_rw_mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/reader_writer_lock.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_rw_mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/critical_section.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task.cpp
cmd /C cscript /nologo /E:jscript ../../build/version_info_windows.js gcc ia32 "g++ -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses " &amp;gt; version_string.tmp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I. -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_misc.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_misc_ex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/recursive_mutex.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/condition_variable.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_thread.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_monitor.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/private_server.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/rml/client/rml_tbb.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task_group_context.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/governor.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/market.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/arena.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/scheduler.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/observer_proxy.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_statistics.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_main.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/concurrent_vector_v2.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/concurrent_queue_v2.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/spin_rw_mutex_v2.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/task_v2.cpp
cmd /C "....buildgenerate_tbbvars.bat"
Generating local tbbvars.bat
Generating local tbbvars.sh
Generating local tbbvars.csh
g++ -E -x c++ ../../src/tbb/lin32-tbb-export.def -g -O0 -DTBB_USE_DEBUG -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses  -I../../src -I../../src/rml/include -I../../include &amp;gt; tbb.def
g++  -o tbb_debug.dll concurrent_hash_map.o concurrent_queue.o concurrent_vector.o dynamic_link.o itt_notify.o cache_aligned_allocator.o pipeline.o queuing_mutex.o queuing_rw_mutex.o reader_writer_lock.o spin_rw_mutex.o spin_mutex.o critical_section.o task.o tbb_misc.o tbb_misc_ex.o mutex.o recursive_mutex.o condition_variable.o tbb_thread.o concurrent_monitor.o private_server.o rml_tbb.o task_group_context.o governor.o market.o arena.o scheduler.o observer_proxy.o tbb_statistics.o tbb_main.o concurrent_vector_v2.o concurrent_queue_v2.o spin_rw_mutex_v2.o task_v2.o    -lpsapi -shared -Wl,--enable-auto-import -Wl,-export-all-symbols -m32  -Wl,--version-script,tbb.def
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: task.o: warning: duplicate section `.rdata$_ZTIN3tbb4taskE[typeinfo for tbb::task]' has different size

c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: scheduler.o: warning: duplicate section `.rdata$_ZTIN3tbb4taskE[typeinfo for tbb::task]' has different size

mingw32-make[1]: Leaving directory `c:/Users/cpadwick/ipl2-workspace/tbb/tbb30_20110704oss/build/windows_ia32_gcc_mingw_debug'
C:/MinGW/bin/mingw32-make -C ".\build\windows_ia32_gcc_mingw_release"  -r -f ../../build/Makefile.tbb cfg=release tbb_root=../..
mingw32-make[1]: Entering directory `c:/Users/cpadwick/ipl2-workspace/tbb/tbb30_20110704oss/build/windows_ia32_gcc_mingw_release'
../../build/Makefile.tbb:39: CONFIG: cfg=release arch=ia32 compiler=gcc os=windows runtime=mingw
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_hash_map.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_vector.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/dynamic_link.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/itt_notify.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/cache_aligned_allocator.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/pipeline.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/queuing_rw_mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/reader_writer_lock.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_rw_mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/spin_mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/critical_section.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task.cpp
cmd /C cscript /nologo /E:jscript ../../build/version_info_windows.js gcc ia32 "g++ -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses " &amp;gt; version_string.tmp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I. -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_misc.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_misc_ex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/recursive_mutex.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/condition_variable.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_thread.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_monitor.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/private_server.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/rml/client/rml_tbb.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/task_group_context.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/governor.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/market.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/arena.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/scheduler.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/observer_proxy.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_statistics.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/tbb/tbb_main.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/concurrent_vector_v2.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/concurrent_queue_v2.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/spin_rw_mutex_v2.cpp
g++ -c -MMD -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses    -I../../src -I../../src/rml/include -I../../include ../../src/old/task_v2.cpp
cmd /C "....buildgenerate_tbbvars.bat"
Generating local tbbvars.bat
Generating local tbbvars.sh
Generating local tbbvars.csh
g++ -E -x c++ ../../src/tbb/lin32-tbb-export.def -O2 -DUSE_WINTHREAD -D_WIN32_WINNT=0x0501 -DMINGW_HAS_SECURE_API=1 -D__MSVCRT_VERSION__=0x0700 -msse -mthreads -m32  -D__TBB_BUILD=1 -Wall  -Wno-uninitialized -Wno-parentheses  -I../../src -I../../src/rml/include -I../../include &amp;gt; tbb.def
g++  -o tbb.dll concurrent_hash_map.o concurrent_queue.o concurrent_vector.o dynamic_link.o itt_notify.o cache_aligned_allocator.o pipeline.o queuing_mutex.o queuing_rw_mutex.o reader_writer_lock.o spin_rw_mutex.o spin_mutex.o critical_section.o task.o tbb_misc.o tbb_misc_ex.o mutex.o recursive_mutex.o condition_variable.o tbb_thread.o concurrent_monitor.o private_server.o rml_tbb.o task_group_context.o governor.o market.o arena.o scheduler.o observer_proxy.o tbb_statistics.o tbb_main.o concurrent_vector_v2.o concurrent_queue_v2.o spin_rw_mutex_v2.o task_v2.o    -lpsapi -shared -Wl,--enable-auto-import -Wl,-export-all-symbols -m32  -Wl,--version-script,tbb.def
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: task.o: warning: duplicate section `.rdata$_ZTIN3tbb4taskE[typeinfo for tbb::task]' has different size

c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: scheduler.o: warning: duplicate section `.rdata$_ZTIN3tbb4taskE[typeinfo for tbb::task]' has different size

mingw32-make[1]: Leaving directory `c:/Users/cpadwick/ipl2-workspace/tbb/tbb30_20110704oss/build/windows_ia32_gcc_mingw_release'
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Jan 2012 16:49:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763326#M11</guid>
      <dc:creator>cpadwick</dc:creator>
      <dc:date>2012-01-12T16:49:29Z</dc:date>
    </item>
    <item>
      <title>Strange linker error building TBB under mingw</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763327#M12</link>
      <description>Hi, I just wanted to post an update on this topic in case it helps someone else. &lt;BR /&gt;&lt;BR /&gt;I had been using the version of the mingw installer labelled mingw-get-inst-20110802.exe . I backed up to the version of the installer labelled mingw-get-inst-20110530.exe and now I can link against tbb.dll just fine. Our best theory that someone on the mingw side monkeyed with the 20110802 version of the installer between the time that my colleague downloaded it and I downloaded it. Our proof is that the versions of GNU Bintools (ld) don't matcheven though we installed from files that have the same name. &lt;BR /&gt;&lt;BR /&gt;Note that there is a new version of mingw available that works with gcc 4.6. In this version of gcc the "-V" option to the compiler is no longer supported. I don't believe this is a problem for TBB as it doesn't follow the usual auto-conf build paradigm, but other packages that do follow this paradigm, like xerces for example, won't get past the ./configure step with the latest 4.6.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jan 2012 23:23:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763327#M12</guid>
      <dc:creator>cpadwick</dc:creator>
      <dc:date>2012-01-12T23:23:38Z</dc:date>
    </item>
    <item>
      <title>Strange linker error building TBB under MinGW</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763328#M13</link>
      <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1326420464125="55" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=336601" href="https://community.intel.com/en-us/profile/336601/" class="basic"&gt;Vladimir Polin (Intel)&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;&lt;EM&gt;hello, &lt;/EM&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;Isnon-mingw version of &lt;STRONG&gt;tbb.dll&lt;/STRONG&gt; around?&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt; [&lt;STRONG&gt;SergeyK&lt;/STRONG&gt;] Do you mean'&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;tbb.lib&lt;/SPAN&gt;&lt;/STRONG&gt;' or '&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;tbb.a&lt;/SPAN&gt;&lt;/STRONG&gt;'?&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;it looks like ld picks up non-mingw version of tbb.dll beforemingw version of tbb.dll. I do not remember exactly whether $LIB/$LD_LIBRARY_PATH/$PATH or-L should go first to linker for mingw.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;hope this helps.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;--Vladimir&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Sergey&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2012 02:11:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763328#M13</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-01-13T02:11:38Z</dc:date>
    </item>
    <item>
      <title>Strange linker error building TBB under MinGW</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763329#M14</link>
      <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1326463949437="55" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=549616" href="https://community.intel.com/en-us/profile/549616/" class="basic"&gt;cpadwick&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;&lt;I&gt;Hi, I was able to check the search path for ld with this command: &lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;$ ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;SEARCH_DIR("=/usr/local/lib")&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;SEARCH_DIR("=/lib")&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;SEARCH_DIR("=/usr/lib")&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;There are definitely no other copies of &lt;STRONG&gt;tbb.dll&lt;/STRONG&gt; in those locations.&lt;/DIV&gt;...&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="background-color: #e5e5e5;"&gt;&lt;BR /&gt;I simply would like to repeat that you should look for a &lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;lib-file&lt;/SPAN&gt;&lt;/STRONG&gt;, not a&lt;STRONG&gt;dll-file&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Sergey&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2012 14:17:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Strange-linker-error-building-TBB-under-mingw/m-p/763329#M14</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-01-13T14:17:09Z</dc:date>
    </item>
  </channel>
</rss>

