Page 1 of 1
include library file <.lib>
Posted: Wed Oct 16, 2013 4:25 pm
by borodadada
How do I connect the library file format .lib?
I try
Not work.
Windows 7x64.
Re: include library file <.lib>
Posted: Wed Oct 16, 2013 4:41 pm
by eranif
Hi,
You are mixing here 2 different tools: The GNU toolchain and Windows MSVC lib files
They are not compatible.
Either use MSVC toolchain (note that codelite support for MSVC is limited, e.g. there are no debugging capabilities for binaries created with MSVC compiler )
Or find the proper .a that can be used with GNU (g++/gcc)
BTW, this stackoverflow answer suggests that it is OK to rename it from .lib to .a
http://stackoverflow.com/questions/1290 ... -windows-7
Eran
Re: include library file <.lib>
Posted: Wed Oct 16, 2013 4:55 pm
by borodadada
rename it from .lib to .a dont work.
in the set there is a bin folder
libsndfile-1.dll
need to connect dll?
wrote on his website that this version windows 7x64.
on site
There is currently only one way of building libsndfile for Win32 and Win64; cross compiling from Linux using the MinGW cross compiler.
Re: include library file <.lib>
Posted: Wed Oct 16, 2013 5:01 pm
by eranif
If it was built for MinGW, then you should be able to link to the dll directly without the .lib (unlike VC, GCC does not need an export file to find the symbols)
So try this:
- Copy libsndfile-1.dll to the C:/MinGW-4.7.1/libsndfile/lib
- In the project settings, change the library name to libsndfile-1 (notice that I did not add any extension to the library name)
Eran
Re: include library file <.lib>
Posted: Wed Oct 16, 2013 5:09 pm
by borodadada
No more mistakes, apparently all is well.
But...
Re: include library file <.lib>
Posted: Wed Oct 16, 2013 5:13 pm
by eranif
This error means that the DLL is not set in your path
Settings -> Environment variables
and add this line (copy paste it);
Code: Select all
PATH=C:\MinGW-4.7.1\libsndfile\lib;$PATH
this should fix this
Eran
Re: include library file <.lib>
Posted: Wed Oct 16, 2013 7:54 pm
by borodadada
Big thx Eran All Work!