Code::Blocks Forums

User forums => Help => Topic started by: Al99 on December 21, 2023, 12:17:09 pm

Title: Open gl compiler flags not working
Post by: Al99 on December 21, 2023, 12:17:09 pm
Hello I am trying to learn how to program sdl and opengl in codeblocks on linux mint victoria. When I build an opengl c++ file it ignores the custon compiler flags I added, -lGL -lglut and -lGLU but these flags work on the command line with g++ and the file compiles fine and runs. Why are these custom compiler flags not working in codeblocks? How can I fix it?

Thanks.
Title: Re: Open gl compiler flags not working
Post by: Miguel Gimenez on December 21, 2023, 12:44:34 pm
Post a full rebuild log (https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F) in code tags (the # above the post window).