LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2008, 09:21 AM   #1
maamoon
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
help in systemc-2.2.0


i want to install a program which based on systemc
I have installed systemc-2.2.0 and put it in a directory called systemc-2.2.0 inside the directory where the programe i want to install it
and changed the Makefile.defs of this programe to

## Variable that points to SystemC installation path
SYSTEMC = ./systemc-2.2.0 //where the systemc installed

INCDIR = -I. -I.. -I$(SYSTEMC)/include
LIBDIR = -L. -L.. -L$(SYSTEMC)/lib-$(TARGET_ARCH)

LIBS = -lsystemc -lm $(EXTRA_LIBS)

when i run the command make depend this warrnings appeared

makedepend: warning: TNoC.cpp (reading TNoC.h, line 30): cannot find include file "systemc.h"

while the systemc.h was found inside the systemc-2.2.0 folder

can any one tell me where is the problem
 
Old 06-20-2008, 10:05 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Why not just write it into your program (TNoC.cpp or TNoC.h)

#include "path-to//systemc.h"

Rgds
 
Old 06-25-2008, 08:41 AM   #3
maamoon
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for your advice
i have make the path to systemc.h in the include and it works but there is other errors found

{
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 41): cannot find include file "cassert"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 42): cannot find include file "climits"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 43): cannot find include file "cmath"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 44): cannot find include file "cstddef"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 45): cannot find include file "cstdio"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 46): cannot find include file "cstdlib"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 47): cannot find include file "cstring"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 48): cannot find include file "exception"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 49): cannot find include file "fstream"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 50): cannot find include file "iostream"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 51): cannot find include file "memory"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 52): cannot find include file "string"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 56): cannot find include file "typeinfo"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 57): cannot find include file "utility"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 58): cannot find include file "vector"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/sysc/kernel/sc_cmnhdr.h, line 116): cannot find include file "cassert"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/sysc/kernel/sc_cmnhdr.h, line 117): cannot find include file "cstdio"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/sysc/kernel/sc_cmnhdr.h, line 118): cannot find include file "cstdlib"
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/sysc/kernel/sc_module.h, line 109): cannot find include file "sysc/kernel/sc_kernel_ids.h"
not in sysc/kernel/sc_kernel_ids.h

}



these files are included in the systemc.h file

{
#ifndef SYSTEMC_H
#define SYSTEMC_H

// INCLUDE SYSTEM (std) DEFINITIONS:

#include <cassert>
#include <climits>
#include <cmath> // math.h?
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
#if defined(__EDG__)
# include <strstream>
#endif // defined(__EDG__)
#include <typeinfo>
#include <utility>
#include <vector>
}

i have searched for these files but i did not find them
could you please tell me the problem
 
Old 06-25-2008, 10:08 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
A *.cpp program is "c++" , and installing gcc-c++ or g++ will do
for most of the missing files.
gcc-c++ or g++ = c++ compiler, the name is different in different
distro's.
(By installing the compiler with your package manager, libstdc++ will
be installed too.)

Which linux are you using?? Name ?? Version ??

And
Quote:
line 109): cannot find include file "sysc/kernel/sc_kernel_ids.h"
not in sysc/kernel/sc_kernel_ids.h
Change the "#include" path, to make the file visible.
(May be #include "sc_kernel_ids.h") ??

#include <some-file> means a system file (e.g. /usr/include/)
#include "some-file" means "the current directory".

Rgds

Last edited by knudfl; 06-25-2008 at 10:09 AM.
 
Old 06-25-2008, 01:47 PM   #5
maamoon
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
i have already installed gcc
gcc --version
gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14

i am using centos 5 linux OS

i think there must be a relation between systemc and the gcc
 
Old 06-25-2008, 02:19 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
'gcc' is for c programs (only).

!! The missing package for CentOS is 'gcc-c++' !!

And ... surprise... you will get all the missing files.

Rgds
 
Old 06-26-2008, 09:42 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
To show that gcc is not just one package, here
are package examples from CentOS 5.2

cpp-4.1.2-42.el5.i386.rpm
gcc-4.1.2-42.el5.i386.rpm
gcc-c++-4.1.2-42.el5.i386.rpm
libstdc++-devel-4.1.2-42.el5.i386.rpm
gcc-gfortran-4.1.2-42.el5.i386.rpm
compat-gcc-34-g77-3.4.6-4.i386.rpm
gcc-objc++-4.1.2-42.el5.i386.rpm
gcc-objc-4.1.2-42.el5.i386.rpm
gcc-gnat-4.1.2-42.el5.i386.rpm

Rgds
 
Old 06-27-2008, 03:06 PM   #8
maamoon
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
after i have installed the gcc-c++
i run the make depend command
the same error appeared
makedepend: warning: TNoC.cpp (reading ./systemc-2.2.0/include/systemc.h, line 41): cannot find include file "cassert"

so i pointed to the place of the files in the systemc.h file
#include </usr/include/c++/4.1.1/cassert>

it works but another error appeared
makedepend: warning: TNoC.cpp (reading /usr/include/c++/4.1.1/cassert, line 27): cannot find include file "assert.h"

so i pointed to the place of the file "assert.h" in the cassert file

another error occured
TNoC.cpp (reading /usr/include/assert.h, line 36): cannot find include file "features.h"

and so on every time i point to a file another file inside it appear to be lost


how can i solve that
 
Old 06-28-2008, 01:08 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Example "assert.h" is basic.
If your program says : #include <assert.h>
is would be found on any system, I think.

'makedepend' is not a command I remember much about,
so please see 'man makedepend' and this text :
http://www.xfree86.org/current/makedepend.1.html

For more info, just google ..make depend.

Rgds

Last edited by knudfl; 06-29-2008 at 01:53 PM.
 
Old 09-20-2009, 07:29 AM   #10
aravindm.10
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
compiling systemC programs in ubuntu 8.10

I have the same problems as in this post but the OS i m using is Ubuntu 8.10. I am a newbie here please mention things specifically
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't install systemc 2.1.1 on amd athlon64 bit with ubuntu breezy tmcgarr Linux - Software 1 09-16-2007 09:59 PM
SystemC Installation Issues?? aragorn_great Programming 8 11-21-2005 08:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration