I downloaded the Dev-C++ v.4.9.9.2 (installation package)
after instalation (on Windows XP)
created new C project
Code:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
getch();
return 0;
}
compiled it and run ok
changed the setting to support debug
got the error
"cannot find -lobjc"
the makefile created by the Dev-C++ is
Code:
# Project: Project1
# Makefile created by Dev-C++ 4.9.9.2
CPP = g++.exe -D__DEBUG__
CC = gcc.exe -D__DEBUG__
WINDRES = windres.exe
RES =
OBJ = main.o $(RES)
LINKOBJ = main.o $(RES)
LIBS = -L"C:/Dev-Cpp/lib" -lobjc -g3 -fmessage-length=0
INCS = -I"C:/Dev-Cpp/include"
CXXINCS = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
BIN = hello.exe
CXXFLAGS = $(CXXINCS) -ansi -fexceptions -fverbose-asm -g3 -fmessage-length=0
CFLAGS = $(INCS) -ansi -fexceptions -fverbose-asm -g3 -fmessage-length=0
RM = rm -f
.PHONY: all all-before all-after clean clean-custom
all: all-before hello.exe all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CC) $(LINKOBJ) -o "hello.exe" $(LIBS)
main.o: main.c
$(CC) -c main.c -o main.o $(CFLAGS)
tried to roll back to default settings of the compiler - no change
I found that -lobjc option can be disabled by the compiler option "Link an Objective C program" (don't know really what does it mean.
Tried both settings ON/OFF but the make file is the same and the error stays
searched forum and google - found nothing usefull
searched lib folder of the Dev-C++ for files like *objc.* - nothing found.
Any directions? Is it some cashing problem?
Please