#20 link order cygwin



I'm using the 3.9.51 Atlas version with LAPack under Cygwin. I've got some linker problems, in some examples everything works fine, the code will be compiled and I add the -l flags with this order if the libraries "lapack", "cblas", "f77blas", "atlas", "gfortran"., and the linker creates the executable. On some examples that use similar code the g++ creates an linker error:

/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o):(.text+0xa9): undefined reference to `_WinMain@16'

If I remove the LAPack / Atlas code the source can be compiled and linked without any errors. Hope that anybody has some ideas to solve the problem

Thanks a lot



  • R. Clint Whaley

    R. Clint Whaley - 2012-06-13


    I am very sorry for the looong delay, but I think I have gotten Windows fully supported in ATLAS 3.9.79. Using it, you can build 32-bit libs using either the cygwin compilers or the MinGW compilers, though you still need cygwin installed. The ATLAS installation guide that comes with the tarfile has Windows-specific installation instructions.

    Can you try 3.9.79 and let me know if it works for you?

    Many thanks,

  • R. Clint Whaley

    R. Clint Whaley - 2012-06-13
    • assigned_to: nobody --> rwhaley
  • R. Clint Whaley

    R. Clint Whaley - 2016-07-14
    • status: open --> closed
  • R. Clint Whaley

    R. Clint Whaley - 2016-07-14

    Sorry for the extreme neglect. I have overwhelmed, and have not been able to provide support for some time. In order to get back to even, I am mass closing existing old support requests.

    If your support request involved the stable release, please try the new 3.10.3BETA release that you can find under the developer releases. That is the release that I have updated to work better on modern hardware, including MacOS and Windows. If you still have a problem with 3.10.3BETA, please open up a new ticket, and I will try to get it fixed before the official 3.10.3 release. Please note t
    he updated ATLAS/doc/atlas_install.pdf: the online document is still for 3.10.2,
    and will remain so until 3.10.3's official release.

    If your support request involved the developer release, I recommend waiting for 3.11.39 before reopening, as I am currently in the middle of a major rewrite. If the problem persists into .39, I definitely want to hear about it.

    Thank you, and I am very sorry about my responsiveness on support.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks