Code::Blocks Forums
User forums => Help => Topic started by: Lory88 on March 22, 2013, 07:20:19 pm
-
Hi all guys. It's my first post over there. I've written a Fortran program under Linux OS and now I need to get a Windows version of it. I always used C::B for small and not too difficult C or C++ program. Now, in my Fortran program I need to include some external libraries like BLAS and LAPACK. I surf the Internet but I do not found a clear and easy way to do so, maybe because I'm quite a newbie in this field.
I downloaded precompiled BLAS and LAPACK libraries from here http://icl.cs.utk.edu/lapack-for-windows/lapack/#libraries_mingw and I tried to follow the steps described converting the operation in C::B.
I put .dll and .lib files in the same folder of my project and in C:\Windows\System32 directory. Then I clicked on my project and go to Build Options windows. In liker tab I added the .lib files in my project folder. Then I add to PATH variable the MinGW folder as described in point 4.
Whene I try to build the main of my project I get the following errors:
ld.exe||cannot find -lblas.lib|
ld.exe||cannot find -llapack.lib|
||=== Build finished: 2 errors, 0 warnings (0 minutes, 0 seconds) ===|
Where is the mistake?
Thank you to all those who can help me!
Bye
-
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)
-
Oh thank you. Now it works. But I can't explain myself why it wasn't working before since I was following the same steps. By the way thank you a lot.