06 August 2019, 00:53 | #1 |
Registered User
Join Date: Aug 2019
Location: Minneapolis, Minnesota, USA
Posts: 2
|
VBCC: file 'stdio.h' not found
I'm trying to setup vbcc for OS3 and OS4 cross compilation on my linux box. The OS3 compiler works fine, but I'm running into the following problem when trying the aosppc config on a simple hello world C source file:
Code:
~ $ echo $VBCC /opt/vbcc ~ $ vc +aosppc -o test hello-amiga.c >#include <stdio.h> error 248 in line 1 of "hello-amiga.c": file 'stdio.h' not found 1 error found! vbccppc -quiet "hello-amiga.c" -o= "/tmp/filenJH4SR.asm" -elf -no-regnames -no-multiple-ccs -madd -c99 -use-commons -O=1 -I$VBCC/targets/ppc-amigaos/include -D__amigaos4__ failed ~ $ ls $VBCC/targets/ppc-amigaos/include assert.h ctype.h errno.h float.h inttypes.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stdbool.h stddef.h stdint.h stdio.h stdlib.h string.h time.h I'm at a loss here. Does anyone else have any ideas on what is happening and why it can't find stdio.h? Thanks. Last edited by Sidewinder; 06 August 2019 at 01:10. Reason: Make the shell output easier to read. |
06 August 2019, 10:14 | #2 |
Registered User
Join Date: Aug 2019
Location: Minneapolis, Minnesota, USA
Posts: 2
|
Well, that was frustrating. It turned out to be a permissions problem where the read bit was not set for 'public'. Since the compiler was installed by root and I was trying to run it as a user, not having the public read bit set made it look like the file was missing.
|
07 August 2019, 11:12 | #3 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Yes, the error message in this case is not that precise. It just tries to open the file and when it fails it display the "file not found" error.
Good that you found it! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBCC getting started help | Warty | Coders. C/C++ | 27 | 07 November 2019 22:12 |
VBCC - What's going on here? | deimos | Coders. C/C++ | 69 | 28 July 2018 16:14 |
vbcc 0.9d | phx | News | 43 | 13 July 2015 19:41 |
asm code file errors and external file locations | Brick Nash | support.WinUAE | 0 | 06 April 2015 17:14 |
File Not Found | Fissuras | project.EAB | 2 | 01 April 2002 02:17 |
|
|