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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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);
} //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?
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