I am trying to compile a program on my laptop and I receive a: [Linker error] undefined reference to 'mcount'. There is no 'mcount' in my code. I can compile this on my desktop (both machines run Windows NT). Any ideas on how I can get this program to compile on my desktop?
Thanks,
Vlada
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think this is a cygwin linked with mingw32 problem. At least I had the same problem do you get an error io_imp_lib not found also ? It's basically a mixed linking issue for Cygwin assembled object code linked against Mingw32 code. Clean build of all .o's and linking with a library that has been compiled with the same toolset should resolve the issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to compile a program on my laptop and I receive a: [Linker error] undefined reference to 'mcount'. There is no 'mcount' in my code. I can compile this on my desktop (both machines run Windows NT). Any ideas on how I can get this program to compile on my desktop?
Thanks,
Vlada
I think this is a cygwin linked with mingw32 problem. At least I had the same problem do you get an error io_imp_lib not found also ? It's basically a mixed linking issue for Cygwin assembled object code linked against Mingw32 code. Clean build of all .o's and linking with a library that has been compiled with the same toolset should resolve the issue.
You possibly have "Generate profiling info" enabled in "Compiler Options". Un-check this option and see if it solves your problem.