Advertisement

Allegro and KDevelop

Started by October 26, 2002 03:23 PM
1 comment, last by DyDx 22 years ago
Hey all, I''ve installed Allegro 4.0.9 on my Mandrake 9.0 system, but I cannot seem to get it to work with KDevelop. I can compile single file allegro programs with "gcc filename.cpp -o filename `allegro-config --libs`", but if I add "`allegro-config --libs`" to the linker options in KDevelop (which is the latest stable version), it doesn''t work. What I get when compiling is a LOT of errors within the actual allegro files themselves, mainly syntax errors. here are just a couple /usr/include/allegro/platform/alunix.h:243: syntax error before "void" /usr/include/allegro/alcompat.h:67: syntax error before "fixed" /usr/include/allegro/inline/3dmaths.inl:36: syntax error before "float" /usr/include/allegro/inline/fmaths.inl:52: syntax error before "double" Anyone know what could be causing this? Thanks.
I haven''t used KDevelop or Allegro on Unix but I think I might be able to help.

I had a similar problem quite a while ago getting a make file working with gnome-config.

gnome-config and I assume allegro-config are executables of some kind. They output the locations of libraries and header files to standard out.

gcc filename.cpp -o filename `allegro-config --libs`

works because `allegro-config --libs` tells the shell to execute that command and insert the text returned in its place. KDevelop might not know how to do this. Either you have to learn how to get KDevelop to do that or you can just type

allegro-config --libs

in a shell and put the locations of the libraries and headers in KDevelop.

Hope this helped.

kdIXfA.gamedev.10.coreyh@xoxy.net
www.ipeg.com/~rlfc
kdIXfA.gamedev.10.coreyh@xoxy.netwww.ipeg.com/~rlfc
Advertisement
Thanks for the reply, but putting the output of "allegro-config --libs" produces the same compiler errors. KDevelop uses gcc to do all of its compilation, so putting "`allegro-config`" SHOULD be the same as doing it via the command-line...

*sigh*

This topic is closed to new replies.

Advertisement