Author Topic: Codeblocks linker  (Read 3623 times)

Offline Amazing Weasel

  • Single posting newcomer
  • *
  • Posts: 3
Codeblocks linker
« on: February 14, 2010, 07:52:22 pm »
Im running Fedora 11 in virtual box, got Codeblocks running and I am using PRG API header and libary files.
I opened the project SnakeGame and now and ran some code.
The error I got were:
ld cannot find -lX11
ld cannot find -lGL
So the linker can't find GL and X11.
I'm not sure If I even have GL or X11..
Thanks in advance!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Codeblocks linker
« Reply #1 on: February 14, 2010, 07:57:51 pm »
I'm not sure If I even have GL or X11..
How shall we know? Isn't it your PC and your installation?! :?

Try a find and grep for the libraries in question. Depending on your distribution there might be a package manager that can tell. Hence I don't know / use Fedora so I can't tell.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ