Menu

cannot find -lobjc

Baneryla
2014-07-19
2014-07-20
  • Baneryla

    Baneryla - 2014-07-19

    I have three files
    main.c===============

    include <stdio.h>

    include <string.h>

    int main()
    {
    //Decl
    char input[81];
    int keep_running = 1; //To keep loops running

    while( keep_running == 1) //Main Screen
    {
    printf("-- ");
    gets(input);

     if ( strcmp (input, "hi") == 0)
     {
          list();
     }
     if ( strcmp (input, "boo") == 0)
     {
          help();
     }
     else
     {
          printf("Unknown Command\n");
     }
    

    } //while end
    } //Main end

    Functions.h

    ifndef FUNCTIONS_H_INCLUDED

    define FUNCTIONS_H_INCLUDED

    / ^^ these are the include guards /

    / Prototypes for the functions /
    / Sums two ints /
    //Function Decl
    void list();
    void help();

    endif

    Functions.c

    include "Functions.h"

    void list()
    {
    printf("FILES LISTED\n");
    }
    void help()
    {
    printf("HELP STUFF");
    }

    And when I try to compile I get error:
    cannot find -lobjc
    ld returned 1 exit status
    C:\Users\bob\Documents\file\Makefile.win [Build Error] [Game.exe] Error 1

    How can I fix this?

     
  • Merak

    Merak - 2014-07-20

    Just remove objc from the library list..
    Project->options->libraries ( or something like that, I don't use dev-c++ any more )
    You'll see a -lobjc in the list there, just remove it and everything is fine

     

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.