You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CC = g++
is a bit weird, generally CXX refers to the default C++ compiler
to make it more cross-build frieldly, I'd suggest CXX ?= g++
AdsLibTest.bin: $(LIB_NAME) $(CC) AdsLibTest/main.cpp $< -I AdsLib/ -I ../ -std=c++11 $(LIBS) -o $@
is a bit weird, why not
AdsLibTest.bin: $(LIB_NAME) main.o $(CC) main.o $< -I AdsLib/ -I ../ -std=c++11 $(LIBS) -o $@
so all .o are build by the .cpp.o rule
is -I ../ needed?
I think -I and std=c++11 can be dropped when purely linking
use $(AR) instead of plain ar (cross-build)
The text was updated successfully, but these errors were encountered:
CC = g++
is a bit weird, generally CXX refers to the default C++ compiler
to make it more cross-build frieldly, I'd suggest CXX ?= g++
AdsLibTest.bin: $(LIB_NAME)
$(CC) AdsLibTest/main.cpp $ < -I AdsLib/ -I ../ -std=c++11 $(LIBS) -o $ @
$(CC) main.o $ < -I AdsLib/ -I ../ -std=c++11 $(LIBS) -o $ @
is a bit weird, why not
AdsLibTest.bin: $(LIB_NAME) main.o
so all .o are build by the .cpp.o rule
is -I ../ needed?
I think -I and std=c++11 can be dropped when purely linking
use $(AR) instead of plain ar (cross-build)
The text was updated successfully, but these errors were encountered: