Skip to main content

Thread: Compile arguments question?


hi im long time since asked las question, jeje well.

have doubt beginning sdl libraries , had set geany work them, included argument on build options:

code:
g++ -wall -o "%e" "%f" -lmingw32 -lsdlmain -lsdl -lopengl32 -lglu32
so compile one.

, works fine arguments present on other kind of proyects arent sdl about.

here comes newbie, quite no smart question excuse me first:

work console projects , these ones doesnt need arguments think.

arguments afect way program work cause still compiles know if right



thanks

quote posted thatcoolguy220 view post
hi im long time since asked las question, jeje well.

have doubt beginning sdl libraries , had set geany work them, included argument on build options:

code:
g++ -wall -o "%e" "%f" -lmingw32 -lsdlmain -lsdl -lopengl32  -lglu32
so compile one.

, works fine here comes newbie, quite no smart question excuse me first:


work console projects , these ones doesnt need arguments think.

arguments afect way program work cause still compiles avoid risk.



thanks
i don't quite see question is. wondering whether need include -lsdl or not? try leave out, , if build succeeds, means didn't need it. on other hand, having there when it's unnecessary won't harm except if in happens have same name expected fetched library later on command line, unlikely (but not impossible). can eliminate latter risk putting @ end of command line.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Compile arguments question?


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support