Author Topic: how to load API developed under visual studio in CB  (Read 4228 times)

mlaker

  • Guest
how to load API developed under visual studio in CB
« 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!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: how to load API developed under visual studio in CB
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ