Menu

Can anyone tell me how to.....(New to dev cpp

Coolfreak
2009-02-24
2012-09-26
  • Coolfreak

    Coolfreak - 2009-02-24

    Can anyone tell me how to compile the source given at

    http://www.allegro.cc/depot/WhiteButterfly

    please can you also tell me what linker options to set? cause I cant compile it.

    this is what I did.

    1)Got the source- It does not say which libraries are there but I think only allegro has been used.

    2) Created a project added all the files.

    3) Set Linker option in Project>Parameters to liballeg.a

    but It gives many errors.

    tell me what modification I need to do.

     
    • cpns

      cpns - 2009-02-25

      > I also gave the link to source in my post so you dont have to read my MIND.

      You gave vague information about the way you set up the project and what teh problem was. The log tells use exactly that information at little or no effort on your part. Moreover, that information is complete and precise; it tells us what the dool is doing rather than what you believe it to be doing. Expeience shows thet these often differ.

      The log will also probably allow us to diagnose your problem without the effort of downloading and installing all the requisite libraries and source. I suggest that you don't second guess those that might assist you; by definition you don't know what you are doing in this instance (no matter how clued up you may be otherwise), so it is hardly for you to decide what information is relevant.

      If you look around the forum, you'll find that the users who post the log in the forst instance often get a solution in the first response. Those that argue about it when it would have been easier to just do what was asked tend to take much longer to get a solution and piss everyone off at the same time.

      > About the errors most errors are that of unknown/undefined
      > reference.(More than 100)

      Indeed, and that is exactly what I want to see! This symbols will tell you (us) what libraries were not linked. The fact that there are more than 100 messaged is irrelevant. I have a scroll bar! That said the "read first" thread addresses exactly that issue and suggests posting the log up to the first 5 messages (all others are often related, and have the same cause, or need to be dealt with incrementally - fix-build-fix etc.).

      > p.s.:If I hadn't installed Allegro library then how the hell
      > I would have been able to set linker to LIBALLEG.A?

      You can put anything you like on the linker command line, the file does not actually have to exist. If a library file does not exist or cannot be found, the linker simply ignores it. All it will do is report the references it was unable to resolve. So it is often the case that you think you added a library, but that the file was not there, or the linker failed to resolve its path.

      Besides that is not how you add a library in any case (it may work, but without the information that would have been provided by the "Compile Log" we cannot tell, but since the link failed, what do you think!?). I believe the "Read First" thread deals with that also, but in summary:

      For libraries that follow the GNU libXXX.a naming convention, then to link a library the option is -lXXX (note that is "<dash><lowercase L>XXX". For that to work the path to the library must be specified by a -L<path> option. In the IDE these can be added by adding the path to the project's Library directories list in the project options dialog. This is why I asked for the log, so I could see what paths and libraries you had specified - which is much more that you were able to tell.

      Since it is easier for you to post the log than to describe all the detail needed to solve your problem, why wouldn't you just do that!?

      Clifford

       
    • cpns

      cpns - 2009-02-25

      Read the "PLEASE READ BEFORE POSTING A QUESTION" thread, then post the log so we don't have to invoke our mind-reading powers!

      Have you installed the Allegro library? If so, where did it come from? If not,... well that would be a start!

       
    • Coolfreak

      Coolfreak - 2009-02-25

      I Installed the allegro Devpack
      also I compiled few other games with it.

      I also gave the link to source in my post so you dont have to read my MIND.

      About the errors most errors are that of unknown/undefined reference.(More than 100)

      The game EXE file on that link contains many other sound and texture/bitmap pellets.

      so including those I AM REQUESTING anyone who can try it out and tell me.

      p.s.:If I hadn't installed Allegro library then how the hell I would have been able to set linker to LIBALLEG.A?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.