C++ linker error when trying to build from object files made using makefile. Does not occur when I just build it
问题 I'm trying to make a makefile for a multi-file C++ project that builds object files, then builds my application from those object files. It works without any errors when I use the command: all: src/main.cpp src/main_funcs.cpp src/menu.cpp src/logging.cpp\ src/runonce.cpp src/wordify.cpp src/vte.cpp g++ -Wall `pkg-config --cflags gtk+-3.0, vte-2.91, glib-2.0, gio-2.0`\ -std=c++14 -o "updater" src/main.cpp src/main_funcs.cpp \ src/logging.cpp src/menu.cpp src/runonce.cpp \ src/wordify.cpp src