English Amiga Board


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

 
 
Thread Tools
Old 06 August 2019, 00:53   #1
Sidewinder
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:

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
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?

Thanks.

Last edited by Sidewinder; 06 August 2019 at 01:10. Reason: Make the shell output easier to read.
Sidewinder is offline  
Old 06 August 2019, 10:14   #2
Sidewinder
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, 11:12   #3
phx
Natteravn
 
phx's Avatar
 
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!
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 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

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 09:41.

Top

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