User forums > Using Code::Blocks

[SOLVED]Linker is searching alternative files

(1/2) > >>

pineout:
I am facing code::blocks for the first time, so mine could be a boring question.
I found nothing in the forum about this message in the build log.


--- Quote ---g++: error: obj/Debug/remmina_devel/Remmina/remmina/CMakeFiles/remmina.dir/src/remmina_string_array.c.o.o: File o directory non esistente
--- End quote ---

the linker is searching object files with the wrong path
CMakeFiles/remmina.dir/  is added inside the path and the object file has a surplus of .o

remmina is compiling object files in the correct root: obj/xxxxxx

probably I am missing a basic setup

thanks in advance

oBFusCATed:
Is this a cmake based project?
As far as I know these are custom makefile project, so the building is handled by make (an external program), so C::B has almost no control on it.

Also please read this http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F and other FAQ entries.

pineout:
Yes, it is a cmake based project.

I read many times this guide http://wiki.codeblocks.org/index.php/Code::Blocks_and_Makefiles
I understood that .cbp can do the job alone, ignoring the makefile.

oBFusCATed:
Does your project build fine outside codeblocks?

pineout:
Yes it builds fine.

My aim is to use the debugger inside CB.

I tried using the custom makefile.
Executable and dependencies are built in the directory of the respective makefile.
I copied the executable to /bin/debug (I don't know if it is correct)

CB debug now can start but with this error
"warning: GDB: Failed to set controlling terminal"

If I am on the right way, this topic is solved.

Navigation

[0] Message Index

[#] Next page

Go to full version