Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Problems compiling program.

Problems compiling program.
Thread Tools
Junior Member
Join Date: Mar 2001
Location: Park Ridge, NJ, USA
Status: Offline
Reply With Quote
Sep 18, 2001, 04:56 PM
 
When I do "c++ virtfunc.cpp" I get:


In file included from /usr/include/gcc/darwin/2.95.2/g++/libio.h:30,
from /usr/include/gcc/darwin/2.95.2/g++/streambuf.h:36,
from /usr/include/gcc/darwin/2.95.2/g++/iostream.h:31,
from virtfunc.cpp:1:
/usr/include/gcc/darwin/2.95.2/g++/_G_config.h:4: sys/types.h: No such file or directory
/usr/include/gcc/darwin/2.95.2/g++/_G_config.h:85: stddef.h: No such file or directory
In file included from /usr/include/gcc/darwin/2.95.2/g++/streambuf.h:36,
from /usr/include/gcc/darwin/2.95.2/g++/iostream.h:31,
from virtfunc.cpp:1:
/usr/include/gcc/darwin/2.95.2/g++/libio.h:59: sys/cdefs.h: No such file or directory
/usr/include/gcc/darwin/2.95.2/g++/libio.h:275: stdio.h: No such file or directory
I've reinstalled the devtools pkg many times, does anyone know how I can fix this problem?
     
Dedicated MacNNer
Join Date: Sep 2000
Location: Medford, MA
Status: Offline
Reply With Quote
Sep 19, 2001, 02:39 PM
 
Can you post a copy of the file? I could give it a shot. What system calls are you making. It sounds like you might need to link with the system framework or something.
     
Junior Member
Join Date: Mar 2001
Location: Park Ridge, NJ, USA
Status: Offline
Reply With Quote
Sep 19, 2001, 03:19 PM
 
Well, I actually don't have the files it's referring to. I don't even have a /sys/ directory within that g++ directory. So for some reason I'm missing files. This is very strange indeed.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Sep 20, 2001, 01:39 AM
 
Originally posted by Ekim Neems:
<STRONG>Well, I actually don't have the files it's referring to. I don't even have a /sys/ directory within that g++ directory. So for some reason I'm missing files. This is very strange indeed.</STRONG>
He meant post virtfunc.cpp
     
Junior Member
Join Date: Mar 2001
Location: Park Ridge, NJ, USA
Status: Offline
Reply With Quote
Sep 20, 2001, 12:03 PM
 
I know what he meant.

What I'm saying is that the error I'm getting makes sense... those header files it's searching for don't exist -- I had a problem installing Fink (the pkg downloads kept failing) and it failed while downloading the g++ update... so I think I should reinstall fink and try again.
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:17 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2