dając ostatnią komendę bez -lbiblioteka
bin/mips-openwrt-linux-uclibc-gcc -o program /home/kamil/Pulpit/ps3netsrv/main.cpp -I${STAGING_DIR}/../target-mips_34kc_uClibc-0.9.33.2/usr/include -L${STAGING_DIR}/../target-mips_34kc_uClibc-0.9.33.2/usr/lib
pojawia się następujący error
/tmp/ccrSU7IR.o: In function `finalize_client(client_t*)':
main.cpp:(.text+0x64c): undefined reference to `operator delete(void*)'
main.cpp:(.text+0x68c): undefined reference to `operator delete(void*)'
/tmp/ccrSU7IR.o: In function `calculate_directory_size(char*)':
main.cpp:(.text+0xcbc): undefined reference to `stat_file'
/tmp/ccrSU7IR.o: In function `process_open_cmd(client_t*, _netiso_open_cmd*)':
main.cpp:(.text+0xfb0): undefined reference to `operator delete(void*)'
main.cpp:(.text+0xfcc): undefined reference to `operator new(unsigned int)'
main.cpp:(.text+0xfdc): undefined reference to `File::File()'
main.cpp:(.text+0xffc): undefined reference to `operator new(unsigned int)'
main.cpp:(.text+0x1024): undefined reference to `VIsoFile::VIsoFile(bool)'
main.cpp:(.text+0x10a8): undefined reference to `operator delete(void*)'
main.cpp:(.text+0x120c): undefined reference to `operator delete(void*)'
main.cpp:(.text+0x122c): undefined reference to `operator delete(void*)'
/tmp/ccrSU7IR.o: In function `process_create_cmd(client_t*, _netiso_create_cmd*)':
main.cpp:(.text+0x1b78): undefined reference to `operator delete(void*)'
main.cpp:(.text+0x1b84): undefined reference to `operator new(unsigned int)'
main.cpp:(.text+0x1b94): undefined reference to `File::File()'
main.cpp:(.text+0x1c20): undefined reference to `operator delete(void*)'
main.cpp:(.text+0x1cb4): undefined reference to `operator delete(void*)'
/tmp/ccrSU7IR.o: In function `process_read_dir_entry_cmd(client_t*, _netiso_read_dir_entry_cmd*, int)':
main.cpp:(.text+0x2450): undefined reference to `stat_file'
/tmp/ccrSU7IR.o: In function `process_read_dir_cmd(client_t*, _netiso_read_dir_entry_cmd*)':
main.cpp:(.text+0x2fd4): undefined reference to `stat_file'
/tmp/ccrSU7IR.o: In function `process_stat_cmd(client_t*, _netiso_stat_cmd*)':
main.cpp:(.text+0x3544): undefined reference to `stat_file'
/tmp/ccrSU7IR.o:(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'
collect2: error: ld returned 1 exit status