Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7047249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:44:54+00:00 2026-05-28T02:44:54+00:00

I am building TBB under MinGW32 (on Windows 7 64 bit) and linking a

  • 0

I am building TBB under MinGW32 (on Windows 7 64 bit) and linking a simple program to it successfully. Unfortunately, my colleague is unable to do link successfully. We are both running the same version of Windows, the same version of MinGW (mingw-get-inst-20110802), and atttempting to compile the exact same code. Our PATH environment variable is exactly the same (.:/usr/local/bin:/mingw/bin:/bin). Yet, despite all things being equal (as far as I can tell), I can successfully build and run the program, my colleages attempts have failed at the link step. If I give him my tbb.dll, then he can successfully link his program. Thus, I am led to believe that there is something wrong about his build of tbb.dll. We have confirmed (using file) that we are producing 32-bit binaries for all object files and libraries

    $ file a.exe
    a.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit
    $ file ./tbb/tbb30_20110704oss/lib/tbb.dll
    ./tbb/tbb30_20110704oss/lib/tbb.dll: PE32 executable for MS Windows (DLL) (console) Intel 80386 32-bit

The command line we are using to build TBB is:

    mingw32-make compiler=gcc arch=ia32 runtime=mingw tbb

The simple test program we are compiling is:

    #include <tbb/task_scheduler_init.h>
    using namespace tbb;
    int main() {
    task_scheduler_init init;
    return 0;
    }

The command line we are using to build the simple test program

    g++ test1.cpp -I ./tbb/tbb30_20110704oss/include -L ./tbb/tbb30_20110704oss/lib -ltbb

In my case, it builds and links flawlessly. In his case, he gets the error message:

    test1.o: In function `tbb::task_scheduler_init::task_scheduler_init(int, unsigned int)':
    test1.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)'
    test1.o: In function `tbb::task_scheduler_init::~task_scheduler_init()':
    test1.cpp:(.text._ZN3tbb19task_scheduler_initD1Ev[tbb::task_scheduler_init::~task_scheduler_init()]+0x16): undefined reference to `tbb::task_scheduler_init::terminate()'

The message seems to indicate that the linker is having a problem finding the symbols tbb::task_scheduler_init::initialize() and tbb_task_schedule_init::terminate(). However both of these symbols exist in tbb.dll (the nm output below is identical for both him and I):

    $ nm ../tbb/tbb30_20110704oss/lib/tbb.dll | grep task_scheduler_init
    676c9cb8 T __ZN3tbb19task_scheduler_init10initializeEi
    676c9c2c T __ZN3tbb19task_scheduler_init10initializeEij
    676c9b64 T __ZN3tbb19task_scheduler_init19default_num_threadsEv
    676c9afc T __ZN3tbb19task_scheduler_init9terminateEv

Can anyone offer any suggestion as to why I would be able to build and link this simple example, when my colleague cannot link, despite the fact that we are using the same exact tools, binaries, source code, operating system, etc??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:44:54+00:00Added an answer on May 28, 2026 at 2:44 am

    SOLVED. This appears to be a defect in MinGW, specifically ld.exe. Reverting from ld version 2.21.1 to ld version 2.21 solves the issue. My colleague and I were using different versions of ld

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Intel's Threading Building Blocks (TBB) open source library looks really interesting. Even though there's
Building a simple login page. If the user types in a password and password
Building on this question , is there a simple solution for having a multi-key
Building a relatively simple website, and need to store some data in the database
building a simple calculator here to get my feet wet with iOS dev. I
Building a simple asp.net web app just to test things out (will obviously refactor
I know TBB (Thread Building Blocks) claim to have a sophisticated engine, but from
Im building a simple chat client which is only supposed to be able to
While building a JAR file (successfully) in Netbeans 7.1.1 , I encountered this warning:
Building on How Do You Express Binary Literals in Python , I was thinking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.