FORUMS
Thread Deleted Subscribe to Thread Email Thread
Prev Previous Post   Next Post Next
Hi.
Iīm doing some tests with c4droid on my phone (a galaxy s3 mini).
Compiling using "g++ + Bionic", no have problems.
However, when i use a Makefile, the "cstdio" library donīt recognize. ("cstdio": no such file or directory)
I dont know i can include the library in Makefile.
Follows under, my makefile:


GCC= $(CXX)
CFLAGS= -c -Wall -lm -v -ldl -lz
LDFLAGS=src (c4droid:CURSRCDIR)
SOURCES=main.c
SOURCES+=src/Classe1.cpp
OBJECTS=$(SOURCES:.cpp=.o) $(SOURCES:.c=.o)
EXECUTABLE=ProjetoTeste

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
$(GCC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
$(GCC) $(CFLAGS) $< -o $@



sorry my english.
thanks.
Last edited by amlgds; 28th June 2014 at 06:59 PM.
Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes