Solved

gcc

Posted on 2006-11-16
6
436 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
An API detour question 7 106
What is atomic operation? 6 73
Why isn't object file created? 6 105
Fill Null values 5 52
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

739 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