| | |
Linking to LAPACK library with g++ on Windows?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2004
Posts: 42
Reputation:
Solved Threads: 0
I have LAPACK and am having problems trying to compile while linking to it with g++ (MinGW and MinGW 64, have and tried both) using the following command:
Even though I'm adding the include path and linking to the library, I'm still getting an
error. I also tried lib\win32 for the include and library paths instead of lib\x64.
I do have
At the top of the file using sgels_().
How am I linking incorrectly, or doing incompletely?
C++ Syntax (Toggle Plain Text)
g++ main.cpp -I"C:\Program Files (x86)\University Of Tennessee\LAPACK 3.1.1\lib\x64" -L"C:\Program Files (x86)\University Of Tennessee\LAPACK 3.1.1\lib\x64" -llapack -lblas
•
•
•
•
undefined reference to `sgels_'
collect2: ld returned 1 exit status
I do have
C++ Syntax (Toggle Plain Text)
extern "C" void sgels_ ( ... );
How am I linking incorrectly, or doing incompletely?
![]() |
Similar Threads
- Any GPL experts? (IT Professionals' Lounge)
- Call Class Library in windows form on click of button (C#)
- Linking static library to C++ DLL (C++)
- problems with a code made in linux working in windows (C)
- Microsoft Visual C++ Runtime Library C:\WINDOWS\explorer.exe (Windows NT / 2000 / XP)
- Linking Behaviour (C)
- Using Qcard with Visual c++ 6 (C++)
- linking java with fortran under Windows OS (C++)
- undefined reference errors when using C++ Sockets Library (C++)
Other Threads in the C++ Forum
- Previous Thread: Program help...
- Next Thread: Using the 'this' keyword in template paramater lists
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file format forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





