That's maybe you forget to specify include path or lib path. If your allegro's head files locate in /usr/local/allegro/include ,and allegro's lib file whose name is liballegro. A locate in /usr/local/allegro/lib Add following script resolve your problem perhaps.
Up vote -1 down vote favorite share g+ share fb share tw.
I am trying to set up my code to use the allegro libray, I am using the KDEV4 under mandriva, I installed the allegro-dev package. Then whenusing allegro functions in KDevelop it displays the documentation, so he surely found the library. However when I compile my source I get allegro_init() not declared error, so I checked the CMakeLists.
Txt file and I think the problem is there: project(game) add_executable(game main. Cpp) What I should write to cmake to find and link the library? I have a general installation where : includes are in /usr/include and libs are in /usr/lib I installed allegro 4.4 under KDE 4.6. 5 mandriva 2011 free, cmake 2.8.4.
If it is not obvious my question is what my CMakeLists. Txt should looks like to compile with the allegro included. C++ cmake allegro link|improve this question edited Nov 29 '11 at 17:47Hossein1,4961319 asked Nov 29 '11 at 16:51Qchmqs4029 89% accept rate.
That's maybe you forget to specify include path or lib path. If your allegro's head files locate in /usr/local/allegro/include ,and allegro's lib file whose name is liballegro. A locate in /usr/local/allegro/lib Add following script resolve your problem perhaps.
INCLUDE_DIRECTORIES( /usr/local/allegro/include ) LINK_DIRECTORIES( /usr/local/allegro/lib ) TARGET_LINK_LIBRARIES(game liballegro. A ).
One possible way is to do it like this. Project(game) add_executable(game main. Cpp) target_link_libraries(game -l{library}) Where {library} is the name if the library which you need to link to your executable.
In your case I think it should be libalegro or something like that. I suppose there is a better way, but I'm not very experienced with Cmake. Best regards.
Actually I found that the right way of doing so is to add a CXX flag to the cmake using kdev options and use a 'allegro-settings --libs' that will return the right place of the includes and . O and . A precompilled sorry guys,thx but I will upvote you all.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.