Author Topic: Build failure  (Read 3644 times)

Offline fanofc

  • Single posting newcomer
  • *
  • Posts: 2
Build failure
« on: April 17, 2015, 09:32:11 am »
I have compiled and produced executables using both gcc and g++ from the command line in Fedora. All codes work. So it is not a compiler problem. Having said that, here's the build log error:
g++ -L/usr/include -o bin/Release/Abar  obj/Release/main.o  -pg  /usr/include
/usr/include:  file not recognized :  Is a directory
collect2:  error:  ld returned  1 exit status
[/size][/size][/color]
[/size]
Could anyone say what I need to do?
Also I have the profiling option (-pg) unchecked in compiler settings yet I see -pg figuring in the log.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Build failure
« Reply #1 on: April 17, 2015, 10:46:45 am »
Where in the settings have you added the "/usr/include" string?
(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 fanofc

  • Single posting newcomer
  • *
  • Posts: 2
Re: Build failure
« Reply #2 on: April 18, 2015, 06:12:05 am »
Thank you Obfuscated!
Prodded by your inquiry I found that I added the /usr/include string in Linker settings as also in Search Directories. Deleting them made the code to build and run well. Thanks again.