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
Solved

gcc

Posted on 2006-11-16
6
432 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
ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

 
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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.

829 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