[Help] ./SDK/amx/*.c: No such file or directory
#1

Hi.

I never compile in Linux and I have problem.

When i type "make" i get that:


Код:
gcc -c -O3 -w -DLINUX -I./SDK/amx/ ./SDK/amx/*.c
gcc: ./SDK/amx/*.c: No such file or directory
gcc: no input files
make: *** [all] Error 1
How can I fix it?
Reply
#2

have your sdk then your folder with your cpp, def and make files in it next to each other insted of 1 "." change your source so its 2 (../SDK/amx/*.c) on all the sdk include lines then go into the folder with your project in the terminal and type make let me know if it helps
Reply
#3

Now i got this, when i type "make" in Streamer project

Код:
g++ -c ./SDK/*.cpp ./Source/*.cpp ./*.cpp -O3 -fno-strict-aliasing -fmerge-all-constants -fvisibility=hidden -ffunction-sections -fdata-sections -Wall -I./
g++ -melf_i386 -Wl,--gc-sections -s -shared -o ./streamer.so *.o
/usr/bin/ld: Core.o: relocation R_X86_64_32 against `boost::unordered_detail::prime_list_template<unsigned long>::value' can not be used when making a shared object; recompile with -fPIC
Core.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [all] Error 1
Reply
#4

Can't you read? It clearly says what you have to do: Add the option -fPIC to your command line.

You can find information about -fpic, -fPIC and other compiler options here:
http://gcc.gnu.org/onlinedocs/gcc/Co...ndex-fpic-2161
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)