Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 11 Dec 2017, 19:18
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
gcc missing header files on FatDog64 702 no math.h
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
ljward

Joined: 10 Apr 2016
Posts: 4

PostPosted: Sun 10 Apr 2016, 14:37    Post subject:  gcc missing header files on FatDog64 702 no math.h
Subject description: gcc package missing header files on FatDog64 702? no math.h + others?
 

Hello,

I'm trying to compile some simple C code on FatDog64 (latest ISO version 702) without luck. I've installed the latest gcc packages in the package manager (tried both gcc and gcc-full), but it appears some header files are missing? So far both limits.h and math.h complain.

Here's an example test case that fails to compile:

#include <math.h>
int main() {
return 0;
}

# gcc test.c
test.c:1:18: fatal error: math.h: No such file or directory
#include <math.h>

compilation terminated

The same error is produced using c++ and g++

Does anyone know if there is a another package I need to install that contains the missing header files or know how to fix this? I also can find cmath.h in no sub-directory of /usr. I'm hoping to get a working c/c++ compiler so I can polish of my fatdog remaster with the few things it doesn't have packages for already.

Thanks for any help you can offer.
Lance
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 720
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sun 10 Apr 2016, 15:53    Post subject:  

Have you installed the devx and kernel source packages? They are needed for compiling.

Get them here if needed:
http://distro.ibiblio.org/fatdog/sfs/700/

Kernel source is specific to kernel version.

Welcome!

_________________
.
Back to top
View user's profile Send private message 
ljward

Joined: 10 Apr 2016
Posts: 4

PostPosted: Sun 10 Apr 2016, 18:10    Post subject: works now
Subject description: works now
 

The C/C++ compilers now works after installing the fd64-devx_702.sfs and kernel-source-3.18.7.sfs files.

I did run into an issue because it seems much more than just the headers are in devx (git/perl/python/other stuff) which overwrote some of my other installed versions. I'm assuming the right thing to do would be to apply fd64-devx_702.sfs first before installing anything else manually or via the package manager. I've reinstalled what got overwritten and things seem to work fine now.

Thanks for the help, it is much appreciated!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0262s ][ Queries: 11 (0.0037s) ][ GZIP on ]