User forums > Using Code::Blocks

3rd party libraries: compiling does not work

(1/5) > >>

zeno:
Hello,
Using C::B has been great, but now I run into trouble using 3rd party libraries. I have been looking for solutions on the net.
Your help would be greatly appreciated!

Issue:
no result display in console window anymore (it would work before I started setting up 3rd party libraries).

Description:
Previously used *.cpp files displayed result as expected in console window.
Now, for a new project, I have to install multiple libraries. After doing so,
and following steps on how to do so, the console window is not displaying the results anymore.

I followed these steps for using 3rd party libraries:
1. create project, 2. right click project/build options../linker settings/add library file *.lib;
tab 'search directories'/compiler/add folder with library files; same folder added in 'linker' tab
3. menu 'project'/set program's arguments../add host application under 'debug' & 'release' // I tried
file 'cb_console_runner.exe' and file 'codeblocks.exe' and check 'run host in terminal'; neither file
provides console window with result

Message in build log:
Build: target is up to date. Nothing to be done
Run: console window "usage: cb_console_runner <filename> <args..>" (for link to file 'cb_console_runner.exe');
Run: console window 1st line empty (for link changed to file 'codeblocks.exe')
Tab: process terminated with status -107374...

a source for my library settings:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F

stahta01:
Post a build log of a rebuild!!
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Are you compiling a library or a program?

Tim S.

Jenna:
Why do you want to run the library (?) through codeblocks or cb_console_runner ?
What do you want to achieve ?
It does not make any sens !

zeno:
Thank you for your replies.

I'm running a program that is referring to a 3rd party library. e.g. starting file '*.cpp' this way:

--- Code: ---#include <iostream>
#include "simpio.h"  // 3rd party library
using namespace std;

--- End code ---

so the challenge I have is incorporating the 3rd party library in compiling the '*.cpp' file.
also, I have other 3rd party libraries, so this is 1 example of many.

stahta01:

--- Quote from: stahta01 on March 29, 2014, 09:32:25 pm ---Post a build log of a rebuild!!
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F


Tim S.


--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version