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)
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.
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)