#### Archived

This topic is now archived and is closed to further replies.

# C++BuilderX + SDL

This topic is 5134 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

This is the first IDE I''ve come across in Linux that I really like the feel of. However, I''m having some trouble getting SDL programs to compile/link... if only I could directly hand edit the compile and link options. :-/ Anyway, I''d greatly appreciate if anyone that got these two working together could throw me a few pointers. Thanks.

##### Share on other sites
I just recently started using C++BuilderX. I''m sure there''s a way of doing it well with the project generated by the IDE, but since my SDL program already had a Makefile which works with SDL, I just set the project to use the Makefile.

However you do it, your going to have to get the final linking call to g++ to add sdl-config --libs at the end. For example, in my Makefile, I have
LDFLAGS = sdl-config --libs -lGL

The official zorx website

##### Share on other sites
Yea, I got it working with the generated project. I couldn''t do it the "lazy" way using sdl-config though. I had to set the directories, etc.

Using your own Makefile is not bad either. It''ll probably be quicker and you get maximum control.