User forums > Using Code::Blocks
how to load API developed under visual studio in CB
(1/1)
mlaker:
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!
MortenMacFly:
--- Quote from: mlaker on January 16, 2013, 02:31:56 am ---Is there a way to solve this issue? or do I need to convert such .lib files first?
--- End quote ---
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.
Navigation
[0] Message Index
Go to full version