LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2024, 05:33 AM   #1
Al99
LQ Newbie
 
Registered: Nov 2020
Posts: 22

Rep: Reputation: Disabled
Custom build compiler flags not working in codeblocks


Hi I am trying to build some sdl2 and opengl c++ code in codeblocks. I have added -lGL -lGLU and -lSDL2 in the project build options. When I build I still get undefined references. When I compile with g++ on the command line these build options work. Why do they not work in codeblocks?

I would really like to use codeblocks instead of the command line.

How can I make it work?

Thanks.
 
  


Reply

Tags
c++



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How difficult is it to create your own C compiler and then use that compiler to compile your own custom Linux kernel? z3rOR0ne Linux - Newbie 17 05-01-2022 03:42 PM
codeblocks crashes and kbsc not working properly. BW-userx Manjaro 0 06-03-2018 04:45 PM
[SOLVED] GTK not working in Codeblocks leprechaun3 Programming 10 07-19-2016 06:55 AM
codeblocks nightly build elishac Linux - Software 37 03-27-2010 04:51 AM
codeblocks build errors g++: command not found yukapuka Linux - Software 3 02-17-2009 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration