cannot find -lobjc

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • babhishek
    New Member
    • Nov 2009
    • 2

    cannot find -lobjc

    Hi I am trying to compile this code on dev c++

    #include<window s.h>
    #include<stdio. h>
    #include<iostre am>

    int main(){

    char s[255];
    GetWindowsDirec tory(s,255);
    printf("%s",s);
    getchar();
    }

    but I am getting this error
    cannot find -lobjc
    ld returned -1 exit status


    Any help would be appreciated.
  • mac11
    Contributor
    • Apr 2007
    • 256

    #2
    why are you using -lobjc?

    My compiler docs say this flag is for linking objective-C programs. What do you expect it to do?

    Comment

    • babhishek
      New Member
      • Nov 2009
      • 2

      #3
      Hi mac11, thanks for the reply, but after I uninstalled and reinstalled dev c++, the program is working fine

      Comment

      Working...