Re: Linking problems when passing linker flags before files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 20 Apr 2021 at 21:42, Jakub Nowak wrote:
>
> Hello,
>
> when I compile my program like this `g++ -std=c++17 -lstdc++fs test.cpp -o
> test` it fails to compile because of linker errors. The reasons is that
> `test.cpp` should some before `-lstdc++fs`.

This is a FAQ: http://c-faq.com/lib/libsearch.html



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux