rikotech said:Can you tell me how to verify my FreeBSD for installed GCC?
gcc -v
Thank you!SirDice said:rikotech said:Can you tell me how to verify my FreeBSD for installed GCC?gcc -v
rikotech said:Thank you!SirDice said:rikotech said:Can you tell me how to verify my FreeBSD for installed GCC?gcc -v
I think the GCC had been installed during the FreeBSD installation.
I got this output:
gcc version 4.2.1 20070719 [FreeBSD]
Now how to execute the GCC?
#include <stdio.h>
int main(int argc, const char *argv[])
{
printf("Hello, World!\n");
return 0;
}
cd
gcc hello.c -o hello
./hello
:Hello, World!
Looking at the version of GCC you have a pre-10.0 installation. GCC was part of the base OS before 10.0.rikotech said:I think the GCC had been installed during the FreeBSD installation.
I got this output:
gcc version 4.2.1 20070719 [FreeBSD]
You already did.Now how to execute the GCC?