Skip Nav
Home » Forums » SystemC Forum

Icon - KMLM List KMLM List

View email archives for the history of this mailing list.

List Home All Archives Dates Threads Authors Subjects
systemc-forum - [Systemc-forum] Error executing link.exe Message Thread: Previous | Next
  • To: systemc-forum@xxxxxxxxxxx
  • From: Asif CN <asifcn@xxxxxxxxx>
  • Date: Tue, 21 May 2002 22:33:16 -0700 (PDT)
Send Email to
Send new message
Reply to this message
Hi all,

i was trying to make a "header file" in correspondence to a PACKAGE in VHDL. 
just take a basic componet like "AND2",and then i used the AND2 fuction 
implemented in the header.


// pkg1.h

#ifndef PKG1_H
#define PKG1_H
#include "systemc.h"

sc_logic and2(sc_logic I0,sc_logic I1);

sc_logic and2(sc_logic I0,sc_logic I1)
 return (I0 & I1);



but i couldn't create an exe file,as it gives some "LINK ERRORS" given below...


annd2_stim.obj : error LNK2005: "class sc_logic  __cdecl and2(class 
sc_logic,class sc_logic)" (?and2@@YA?AVsc_logic@@V1@0@Z) already defined in 
Debug/ex1.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

ex1.exe - 2 error(s), 0 warning(s)

what is the cause of this?any idea?

i'm using SystemC2.0 under VC++6  on winNT.

i'm attaching all the files( of the session for your reference. can 
anybody please help  me on this?

Thanks in advance



Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience


By Date: Previous | Next Current Thread By Thread: Previous | Next

  Mail converted by the most-excellent MHonArc 2.6.10