Solved

gcc

Posted on 2006-11-16
6
426 Views
Last Modified: 2010-04-15
Iam trying to compile some 600 lines of code on a solaris platform using gcc compiler.When I am compiling as gcc convRptFile.c,it throws the below error.Please tell me wether I have to enable any environment setup commands or any commands to be executed before compiling.but i am able to compile using cc without any errors instead og gcc.

Error:
In file included from /usr/include/sys/sysmacros.h:18, from /usr/gnu/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/includ
e/sys/types.h:19, from convRptFile.c:4:
/usr/gnu/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/include/sys/param.h:9: machine/param.h: No such file or directory
0
Comment
Question by:tatikor_143
6 Comments
 

Author Comment

by:tatikor_143
ID: 17961128
Hi Experts,

Please post your comments on the above query.
0
 
LVL 22

Expert Comment

by:grg99
ID: 17961581
There seems to be a missing include file.  

I'd reinstall gcc,  or  as a kludge, look around for a param.h file in /usr/gnu, it might just be misplaced.

0
 

Author Comment

by:tatikor_143
ID: 17962269
how to reinstall gcc?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 22

Expert Comment

by:grg99
ID: 17964195
go to www.gnu.org and find the latest gcc distribution for your computer.   Or download the sources (huge!) and recompile them.

0
 
LVL 6

Accepted Solution

by:
_iskywalker_ earned 500 total points
ID: 17968142
it seems that your gcc needs the machine/param.h you could also downlaod a param.h and put in a directory and inlclude the directory (dont forget the subdirectory machine). so you dont need to install
i have machine/param.h at my cygwin installation and it has:
/* Place holder for machine-specific param.h.  */

also nothing. maybe there is also a flag in  the /usr/gnu/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/include/sys/param.h which you can activate/deactive so machine/param.h  within compile command. gcc -DDEACTIVATEKEY for example
0
 

Expert Comment

by:tzk
ID: 17970391
Try to Use the option "-I{DIRNAME}" or "-L{DIRNAME}", to search the directory including param.h
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now