KMLM List
View email archives for the history of this mailing list.
|
|
|
|
systemc-forum - Re: [systemc-forum] face problem in compilation of code
|
Message Thread:
Previous |
Next
|
- To: mitul nagar <mitul.nagar.08ec@xxxxxxxxx>
- From: Alan Fitch <alan.fitch@xxxxxxxxxx>
- Date: Tue, 28 Feb 2012 06:19:36 -0800
- Cc: "Philipp A. Hartmann" <philipp.hartmann@xxxxxxxx>, systemc-forum@xxxxxxxxxxxxxxxxxxx
- Send Email to systemc-forum@lists.accellera.org:
- Send new message
- Reply to this message
|
On 28/02/2012 02:15, mitul nagar wrote:
it is not going to compile and because of that it will
not generate ei_pmu.o so file not get generate due to this error
Hi Mitul,
that doesn't seem to be correct from the message you posted. The
message you posted was a linker error, *not* a compiler error. So as
far as we can see there is *no* problem with compiling.
Are you using a Makefile?
Perhaps the Makefile does not include the C++ source file for
ei_pmu.cpp?
Are there other errors? Can you do
make clean
make
and post the complete output of those commands?
regards
Alan
On Tue, Feb 28, 2012 at 3:37 PM, Philipp
A. Hartmann <philipp.hartmann@xxxxxxxx>
wrote:
Mitul,
please keep the mailing list in CC.
As I suggested in my initial mail, you need to add all your
.o files
(and libraries) to the final linker command. Since you have a
separate
definition of e.g. ei_pmu::pwr_mng_unt, the linker currently
seems to
miss the ei_pmu.o file during linking.
Check the command-line options given during linking (the one
with
-lsystemc etc.).
Greetings from Oldenburg,
Philipp
On 28/02/12 10:25, mitul nagar wrote:
> ...............................................header
>
file......................................................................
> #include "systemc.h"
>
> SC_MODULE(ei_pmu){
>
> sc_in<bool> FCLK;
>
> //--------------WIC INTERFACE------------------------
> sc_out<bool> WICENREQ;
> sc_in<bool> WAKEUP;
> sc_in<bool> WICENACK;
>
> //---------------NVIC INTERFACE----------------------
>
> sc_out<bool> SLEEPHOLDREQPMU;
> sc_in<bool> SLEEPHOLDACKPMU;
> sc_in<bool> SLEEPDEEP;
>
> //---------------- OUTPUT ---------------------------
>
> sc_out<bool> ISOLATE;
> sc_out<bool> RETAIN;
> sc_out<bool> PWRUP;
>
> //-----------------FUNCTION ------------------------
>
> void pwr_mng_unt();
>
> SC_CTOR(ei_pmu)
> {
> SC_THREAD(pwr_mng_unt);
> sensitive<< FCLK.pos();
> dont_initialize();
> }
>
> } ;
>
>
...............................................................
cpp
>
file....................................................................
>
> #include "../Include/ei_pmu.h"
>
> void ei_pmu : : pwr_mng_unt()
> {
>
>
>
.......................code...............................
> }
>
> }
> }
--
Philipp A. Hartmann
Hardware/Software Design Methodology Group
OFFIS Institute for Information Technology
R&D Division Transportation · FuE-Bereich Verkehr
Escherweg 2 · 26121 Oldenburg · Germany · http://offis.de/en/
Phone/Fax: +49-441-9722-420/282 · PGP: 0x9161A5C0 · Skype:
phi.har
--
Alan Fitch
Senior Consultant
Doulos – Developing Design Know-how
VHDL * Verilog * SystemVerilog * SystemC * PSL * Perl * Tcl/Tk * Project Services
Doulos Ltd. Church Hatch, 22 Marketing Place, Ringwood, Hampshire, BH24 1AW, UK
Tel: + 44 (0)1425 471223 Email: alan.fitch@xxxxxxxxxx
Fax: +44 (0)1425 471573 http://www.doulos.com
------------------------------------------------------------------------
This message may contain personal views which are not the views of Doulos, unless specifically stated.
|
|
|