Hello Dear!
1. with maikefile (could not link with existing function in libbcm2835.a):
TARGET=$(shell basename 'main')
SOURCES=$(wildcard *.cpp)
OBJECTS=$(SOURCES:%.cpp=%.o)
CFLAGS+=$(shell pkg-config --cflags libwt libwthttp libboost_signals libbcm2835)
LDFLAGS+=$(shell pkg-config --libs libwt libwthttp libboost_signals libbcm2835)
all: $(TARGET)
$(TARGET):$(OBJECTS)
$(OBJECTS):$(SOURCES)
$(CXX) -o $(TARGET) $(LDFLAGS) $(OBJECTS) $(LOADLIBS) $(LDLIBS)
clean:
$(RM) $(OBJECTS) $(TARGET)
.PHONY: all clean
...in function 'main'
...undefined reference to 'bcm2835_init'
collect2:ld returned 1 exit status
2. with typing the gcc command directly (g++ Wall -o main main.cpp -lwt -lwthttp -lboost_signals -lbcm2835)
/usr/lib/gcc/arm...../libwt.so:undefined reference to 'boost::system::system_category()'
collect2:ld returned 1 exit status
# pkg-config --libs libbcm2835
-L/home/distr/geany/src -lbcm2835
# pkg-config --cflags libbcm2835
-I/home/distr/geany/src
in booth case i get two differents errors.
But siparetly libwt and libbcm2835 librarys are linking with main.o without any error.
HOW TO DO WORK BOOTH LIBRARY TOGETHER?