Why does the order of passing parameters to g++ matter
问题 Recently, I was trying to build an application, which uses some libraries, available in form of shared object files. I wasted lot of time in compiling the CPP code and it didn't work. Below is the command, previously I was trying to compile the code- g++ -I/opt/ros/indigo/include/ -I/usr/include/eigen3/ -L/opt/ros/indigo/lib/ -lorocos-kdl -lkdl_parser test.cpp -o test The above command always shows many undefined references errors. Just for the curiosity, I changed the order of parameters.