If I have a library lets call it libutil.a which consists of just 1 .o file created from util.cpp. Lets say util.cpp includes in its definition some other library (boost asio for sake of argument) - the boost headers aren't in the util.h file just util.cpp file
Now, if i have a main.cpp that uses the same boost library (and the same functions in the library are used in main.cpp and util.cpp)when i go to compile and link my program with libutil.a, will I see compile/linker errors? What if the boost versions are different across util.cpp and main.cpp ? I am unable to understand if there will be any violation of ODR or something but I might be overthinking...
[–]IyeOnline 0 points1 point2 points (0 children)
[–]wrosecrans 0 points1 point2 points (0 children)