1
General / Linker Errors Ubuntu
« on: March 13, 2012, 10:08:04 pm »
Yes, the -L does work, but only if I then also use the battalion of "-l" parameters like this:
B.t.w. ,the man/info page for gcc does only mention the existence of the -L option. It is nowhere explained what it actually does. And I can call g++ -L "nonexisting path" and will get no errors from that.
Code: [Select]
g++ Window.cpp -L /usr/local/lib -lsfml-window -lsfml-graphics -lsfml-system -lGLU -lGL -lSM -lICE -lX11 -lXext -lpthread -lrt -lXrandr -o window
So, without -L, the linker can find openGL and the other stuff all by itself, but if I use it, it no longer can.B.t.w. ,the man/info page for gcc does only mention the existence of the -L option. It is nowhere explained what it actually does. And I can call g++ -L "nonexisting path" and will get no errors from that.