Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

A Newbie Question

Martin
2012-11-10
2012-11-10
  • Martin
    Martin
    2012-11-10

    I thought I'd revert to a simple program first, in order to get this Windows compiler going. A version of the Hello World! program:

    include <iostream>

    using namespace std;

    int main()
    {
    cout << "Hello World!" << endl;
    return 0;
    }

    Compiler errors:

    Compiler: Default compiler
    Executing g++.exe...
    g++.exe "C:\Users\martin\Progs\temp.cpp" -o "C:\Users\martin\Progs\temp.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
    /mingw/lib/crt2.o(.text+0x8): In function _mingw_CRTStartup': ../mingw/crt1.c:193: undefined reference todyn_tls_init_callback'
    /mingw/lib/crt2.o(.text+0x3a):../mingw/crt1.c:207: undefined reference to `
    cpu_features_init'
    collect2: ld returned 1 exit status Execution terminated

    Any idea where I go from here?