User forums > Using Code::Blocks

Code::Blocks not compiling .cpp files well under Ubuntu

<< < (2/4) > >>

McZim:
srepuac, what problem, linking library to the project :)

srepuac:
Umm, project and build settings huh?

I'm not sure exactly how to check that, but I don't make projects, I just make File-New-File-C++ Source.

As for build settings, I just added the following libraries and search directories to my compiler:

Libraries:
libncurses++.a
libcurses.a
libncurses.a
libdl.a
libglib.a

Directories:
/usr/lib

Hope you can help me solve the problem, I love code::blocks  :(

Oops, had forgotten the command line:

g++ file.cpp -o file -lncurses

McZim:

--- Quote from: srepuac on June 18, 2008, 01:10:37 pm ---Umm, project and build settings huh?

--- End quote ---

no :) Settings->Compiler and Debugger(Linker settings)

srepuac:
Well, McZim, on linker settings, I just have those extra libraries listed above

McZim:
you need include this library /lib/libncurses.so.5

P.S.: path /lib, not /usr/lib. And shall be install this packages libncurses5, libncurses5-dev

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version