Author Topic: [SOLVED]Linker is searching alternative files  (Read 2999 times)

Offline pineout

  • Single posting newcomer
  • *
  • Posts: 6
[SOLVED]Linker is searching alternative files
« on: September 27, 2015, 09:30:26 pm »
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

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
« Last Edit: September 29, 2015, 04:12:13 pm by pineout »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Linker is searching alternative files
« Reply #1 on: September 28, 2015, 12:12:36 am »
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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline pineout

  • Single posting newcomer
  • *
  • Posts: 6
Re: Linker is searching alternative files
« Reply #2 on: September 28, 2015, 12:24:18 pm »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Linker is searching alternative files
« Reply #3 on: September 28, 2015, 08:12:27 pm »
Does your project build fine outside codeblocks?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline pineout

  • Single posting newcomer
  • *
  • Posts: 6
Re: Linker is searching alternative files
« Reply #4 on: September 29, 2015, 11:12:06 am »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Linker is searching alternative files
« Reply #5 on: September 29, 2015, 07:48:51 pm »
CB debug now can start but with this error
"warning: GDB: Failed to set controlling terminal"
This is not an error, but a warning. Just ignore it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]