FreeBSD 10.3, X.org+XFCE, root.
I have made this option to get IDE and compiler:
after that I wrote this simple code in Geany:
It was compiled and ran, but in geany_run_script_XXXXXX.sh
I opened the folder and try to run compiled file but I have get: "command not found"
I have made this option to get IDE and compiler:
pkg install geany
pkg install gcc
after that I wrote this simple code in Geany:
Code:
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
int main()
{
int M[51];
int j = 0;
int i;
for(i=0; i<52; i++)
{
j = (i + 1)/13;
M = ((int)(j) + 1)*100 + (i+1);
}
printf("you get in 32 %d \n", M[32]);
printf("you get in 32 %d \n", M[51]);
getchar();
return 0;
}
I opened the folder and try to run compiled file but I have get: "command not found"
chmod 777 file_name
didn't helps me. What I'm doing wrong?