none
keep getting error RRS feed

  • Question

  • c:/TDM-GCC-32/bin/../lib/gcc/mingw32/5.1.0/../../../libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `WinMain@16'
    collect2.exe: error: ld returned 1 exit status

    // Lab #4
    // Programmer: blank
    // Editor(s): HP Laptop
    // Compiler(s): GNU Compiler
    //
    // identifying output statements
    // cout << "Programmer: blank    " << endl;
    // cout << "Description: This program calculates a mortgage payment" << endl;
    // keyboard," << endl:
    // cout << " and output to the console screen." << endl;
    //
    //int main()
    //{
    // Amount Borrowed =$300000;
    // annual interest rate=6.125%;
    // payback period = 30 years;
    // monthly payment=1818.20;
    //}

    Tuesday, February 18, 2020 8:52 PM

All replies

  • c:/TDM-GCC-32/bin/../lib/gcc/mingw32/5.1.0/../../../libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `WinMain@16'

    Strictly speaking, this forum is for issues related to Visual C++ use.
    If you are having problems with gcc, mingw, etc. then you should go to
    a forum dedicated to using those tools.

     - Wayne

    Tuesday, February 18, 2020 9:47 PM