Přidat otázku mezi oblíbenéZasílat nové odpovědi e-mailemVyřešeno nenajdena referencia v dynamickej kniznici

Ak pouzivas gcc tak
http://www.delorie.com/djgpp/doc/ug/compiling/gcc. html

The -l options are used to add libraries to your program. Note that order is important! You should always list libraries after all your objects. If you don't, gcc might not realize that it needs them until it's too late. The -l option is a shortcut for linking a library, because you can always just list the library on the command line (like "gcc hello.o mylib.a"). The benefit of the -l option is that you don't need to know where the library is. This is used for the standard libraries, and in fact, gcc will automatically add -lc to whatever you type in order to get the standard C library (libc.a). Note that with the -l option, you only need to specify part of the library name. gcc assumes that the library name starts with "lib" and ends in ".a", so -lfoo would refer to libfoo.a and would be found wherever the standard libraries are kept.
ak je ta kniznica v nedefaultnom adresari tak potrebujes nastavit aj cesty na kniznice
http://www.network-theory.co.uk/docs/gccintro/gcci ntro_21.html
When additional libraries are installed in other directories it is necessary to extend the search paths, in order for the libraries to be found. The compiler options -I and -L add new directories to the beginning of the include path and library search path respectively.

Reakce na odpověď

1 Zadajte svou přezdívku:
2 Napište svou odpověď:
3 Pokud chcete dostat ban, zadejte libovolný text:

Zpět do poradny