Menu

need help! cannot compile my programs!

johnsy2004
2007-10-30
2012-09-26
  • johnsy2004

    johnsy2004 - 2007-10-30

    hi, this is my first post...

    i keep getting the same error message whenever i try to compile my program. i only just got dev c++ yesterday and was completely dumbfounded when i noticed this error come up:

    cannot find -lobjc

    does anyone know how to solve this problem? or can you point me in the right direction?

     
    • Wayne Keen

      Wayne Keen - 2007-10-30

      Well, first, a gentle hint: this forum has a search capability, had you searched on this error message, you would have found the answer quickly.

      The short version - for one reason or another - an option gets set in the editor to link objective C code - sometimes it is from people clicking buttons at random, sometimes by poltergeists. Look around in your menus for this item (and look at what's there for your general edification) - and unclick the option.

      Wayne

       
      • johnsy2004

        johnsy2004 - 2007-10-30

        ive searched and cant find anything to help. ive searched my computer for the file and it didnt find it. i looked on every damn tab i could find on dev C++ and still nothing at all! any other ideas?

         
    • Anonymous

      Anonymous - 2007-10-30

      >> any other ideas?

      No need for "other ideas" the idea you have been given is what you need! Your search skills need some work.

      In compiler options (Tools|Compiler options) make sure the 'Link Objective C program' option set to 'No'.
      There is a similar option under Project|Project options...|Compiler, check that too if you are using a project.

      And don't screw with options that you don't understand. Wayne is just being nice when he suggests that this happens for no reason. It doesn't, it was set because you or someone else set it.

      If you continue to have problems, do post the compile log.

      In the unlikely event that you do want to write Objective C code (uncommon outside of MAC OSX or NeXT Step development), you have to download additional support, it is no longer distributed with Dev-C++.

      Clifford

       
    • BiT

      BiT - 2007-10-30

      put "lobjc" in the search box (upper right of the page) and hit search. Your answer awaits you.

      The trick is to be smarter then the search engine ;>p

       

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.