¡@

Home 

c++ Programming Glossary: prog.c

Why does the library linker flag sometimes have to go at the end using GCC?

http://stackoverflow.com/questions/9417169/why-does-the-library-linker-flag-sometimes-have-to-go-at-the-end-using-gcc

end At the moment to compile the program I do gcc o prog prog.c lrt std gnu99 If I were to do the following it will fail to.. to find the functions in librt gcc std gnu99 lrt o prog prog.c Yet this works with other libraries. I found the issue when.. to use a simple Makefile. make actually compiled prog.c without liking first using c flag and then did the linking...