Arc Forumnew | comments | leaders | submitlogin
Another Arc implementation in C (github.com)
6 points by c-a-smallwood 3689 days ago | 8 comments


2 points by SteveGraham 3683 days ago | link

Error in make:

  sh-3.1$ pwd

  /c/Users/Steve/arc-master

  sh-3.1$ make

  cc -o arc *.c

  builtins.c: In function 'builtin_load':

  builtins.c:369:13: warning: assignment makes pointer from integer without a cast [enabled by default]

  read.c: In function 'load_file':

  read.c:268:47: warning: initialization makes pointer from integer without a cast [enabled by default]

  C:\Users\Steve\AppData\Local\Temp\ccTbSwOD.o:builtins.c:(.text+0x1276): undefined reference to `_realpath'

  C:\Users\Steve\AppData\Local\Temp\ccr5oXek.o:read.c:(.text+0xd45): undefined reference to `_realpath'\

  collect2.exe: error: ld returned 1 exit status

  make: *** [all] Error 1

  sh-3.1$

-----

2 points by SteveGraham 3682 days ago | link

I'm on a Win7-64 system running under MinGW.

-----

3 points by c-a-smallwood 3682 days ago | link

Strange... It can't find realpath. Seems to be a MinGW issue according to google. I've developed the whole on Android w/ C4droid, and I'm not too experienced with MinGW, but I'll see about finding a fix!

-----

2 points by c-a-smallwood 3681 days ago | link

Should be fixed in the latest commit.

-----

2 points by SteveGraham 3679 days ago | link

Went to the page, selected Download Zip, downloaded the file, extracted it and ran 'make && ./' and got:

  cc -o arc *.c
  read.c: In function 'load_file':
  read.c:308:47: warning: initialization makes pointer from integer without a cast [enabled by default]
  C:\Users\Steve\AppData\Local\Temp\cctkjQZb.o:read.c:(.text+0xeb4): undefined reference to `_realpath'
  collect2.exe: error: ld returned 1 exit status
  make: *** [all] Error 1

-----

2 points by c-a-smallwood 3679 days ago | link

Sorry, for some reason I didn't send the commit for that file before, but it is finally updated this time.

-----

2 points by SteveGraham 3678 days ago | link

Downloaded and tried again. It did make. However, I then got an alert box stating that 'arc.exe has stopped working'.

-----

2 points by c-a-smallwood 3678 days ago | link

Hmmm. Guess I'm gonna have to make a Windows VM and do some digging.

-----