Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: mlaker on January 16, 2013, 02:31:56 am

Title: how to load API developed under visual studio in CB
Post by: mlaker on January 16, 2013, 02:31:56 am
I'm new to CB and want to use CB to develop a C++ project, which intends to use an API developed under VS. This API contains .h files, .lib files and .dll files.

I choose GNU GCC compiler in CB. However, when compiling, CB complains it couldn't find the .lib files. I put the .lib files where the main source file is and add those files into the project in the IDE. Besides, I also tried to set the linker option (link libraries). However, the program still couldn't find the .lib files.

Is there a way to solve this issue? or do I need to convert such .lib files first?

Thanks!
Title: Re: how to load API developed under visual studio in CB
Post by: MortenMacFly on January 16, 2013, 06:57:34 am
Is there a way to solve this issue? or do I need to convert such .lib files first?
Usually not. But you need to tell the linker where the libs are by setting the include folder (search folder) for the linker accordingly.
Project -> Build options -> (Project/Target level) -> Search directories -> Linker.