English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

Thread Tools
Old 06 August 2019, 01:53   #1
Registered User

Join Date: Aug 2019
Location: Minneapolis, Minnesota, USA
Posts: 2
Question 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:

~ $ echo $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
To me the -I says that it's going to look in $VBCC/targets/ppc-amigaos/include for the standard includes, but the error tells me that it can't find stdio.h. However, the listing of $VBCC/targets/ppc-amigaos/include shows that stdio.h is, in fact, in the directory.

I'm at a loss here. Does anyone else have any ideas on what is happening and why it can't find stdio.h?


Last edited by Sidewinder; 06 August 2019 at 02:10. Reason: Make the shell output easier to read.
Sidewinder is offline  
Old 06 August 2019, 11: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.
Sidewinder is offline  
Old 07 August 2019, 12:12   #3

phx's Avatar
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,538
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!
phx is offline  

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 23:12
VBCC - What's going on here? deimos Coders. C/C++ 69 28 July 2018 17:14
vbcc 0.9d phx News 43 13 July 2015 20:41
asm code file errors and external file locations Brick Nash support.WinUAE 0 06 April 2015 18:14
File Not Found Fissuras project.EAB 2 01 April 2002 03:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 06:59.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.06319 seconds with 15 queries