I have some problems with GCC. I want a portable version of GCC because the PC I use for programming cannot be connected to Internet due to some driver issues. So, I read an article on how to compile gcc from source to make it a portable version and followed it. But when I copied the directory where I built GCC to my PC and tried to compile a simple C program, it gives an error saying "stdio.h
no such file or directory" so definitely my portable GCC is not working properly. I used the arguments like --disable-shared
, --enable-static
etc... as given in the article but still I know that the compiled version is not portable. Can someone please tell me how to compile a portable version of GCC which I can then copy to my PC?
Note: The PC on which I need GCC is running Fedora 23. It doesn't have any C compiler pre-installed and due to same reasons, I am not able to compile driver for my wifi adapter. So, please suggest a method which doesn't require my main PC to be connected to Internet.